This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-13
Channels
- # adventofcode (35)
- # announcements (2)
- # arachne (1)
- # beginners (71)
- # chestnut (2)
- # cider (100)
- # cljdoc (17)
- # cljs-dev (17)
- # cljsjs (2)
- # cljsrn (2)
- # clojure (53)
- # clojure-austin (2)
- # clojure-europe (1)
- # clojure-finland (2)
- # clojure-italy (3)
- # clojure-nl (7)
- # clojure-russia (56)
- # clojure-spec (56)
- # clojure-uk (35)
- # clojurescript (58)
- # community-development (14)
- # core-async (9)
- # cursive (22)
- # data-science (5)
- # datomic (14)
- # duct (5)
- # emacs (2)
- # expound (4)
- # figwheel-main (6)
- # fulcro (23)
- # kaocha (8)
- # lumo (7)
- # off-topic (10)
- # pathom (6)
- # re-frame (17)
- # reitit (31)
- # ring (3)
- # rum (1)
- # shadow-cljs (45)
- # spacemacs (10)
- # sql (12)
- # testing (9)
- # tools-deps (130)
To update from yesterday, I ended up adding (.exportSymbol js/goog "setTimeout" js/setTimeout)
to be executed before the top-level go
block and I was able to get it working. Thanks again for the help!
I haven't been able to find the answer via google, but do go block channels auto close themselves? I'm trying to put a value onto a channel created via a go block and it's returning false
@dehli The channel returned from (go ...)
is closed when the go
block exits. You shouldn't try to put anything to it.
Gotcha, that makes sense. Is there a way to repeatedly "take" the same value from a channel? More analogous to how JS promises work
I see that there is a promise-chan
which can only store one value, but can you still only take the value once?
There is promise-chan in cljs https://github.com/clojure/core.async/blob/master/src/main/clojure/cljs/core/async.cljs#L67