This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-23
Channels
- # aleph (9)
- # beginners (30)
- # boot (42)
- # carry (1)
- # cider (148)
- # clara (2)
- # cljsrn (13)
- # clojars (2)
- # clojure (90)
- # clojure-dev (1)
- # clojure-dusseldorf (2)
- # clojure-italy (7)
- # clojure-madison (1)
- # clojure-quebec (1)
- # clojure-russia (19)
- # clojure-sg (1)
- # clojure-spec (14)
- # clojure-uk (90)
- # clojurebridge (1)
- # clojurescript (70)
- # clr (7)
- # core-async (24)
- # cursive (26)
- # data-science (2)
- # datascript (3)
- # datomic (46)
- # devops (2)
- # emacs (6)
- # events (1)
- # figwheel (2)
- # hoplon (200)
- # klipse (2)
- # ldnclj (1)
- # lein-figwheel (4)
- # leiningen (3)
- # off-topic (44)
- # om (70)
- # other-languages (6)
- # pedestal (5)
- # protorepl (1)
- # re-frame (17)
- # reagent (14)
- # schema (2)
- # spacemacs (1)
- # specter (3)
- # test-check (38)
- # unrepl (38)
- # untangled (19)
- # yada (16)
Hello all, I have a function that use clj-http to do this (http-client/get "
. I don´t know why, sometimes the get don´t get response. Is there any way to do timeout to handle this?
I don't think that's core.async related at all?
I use loop
all the time in go blocks, often to manage state.
@tanzoniteblack was thinking about the recent presentation by @tbaldridge where he would like to see less core.async in 'normal' code
No, doseq uses a sequence
Is into with a map transducer not equivalent?
and additionally, not sure what go blocks have to do with this
oh, something like run! maybe
Will not work
oh, right
I’m trying to bend my head around what it would be and whether it’s possible
I think I would not even use doseq, I’d use loop
but I don’t see how it would be possible to give a parkable procedure to a reducible and have that work with go
yes, reducibles are push-based, so they require their own dedicated thread to spin results onto a channel
@raymcdermott your post was yesterday but it’s an interesting topic — I think your intent is clear; either way, I’d make one fundamental change: instead of forcing core.async on your caller, requiring him/her to create a channel and pass it in, create one yourself, and return a function which, when called, terminates the loop — here is a gist which shows a few different ways to do that