This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-09
Channels
- # aleph (9)
- # bangalore-clj (1)
- # beginners (3)
- # boot (58)
- # cider (19)
- # cljs-dev (5)
- # cljsrn (31)
- # clojure (35)
- # clojure-greece (1)
- # clojure-poland (4)
- # clojure-russia (1)
- # clojure-spec (65)
- # clojure-uk (1)
- # clojurescript (41)
- # data-science (2)
- # datascript (6)
- # devcards (3)
- # emacs (2)
- # hoplon (10)
- # liberator (3)
- # numerical-computing (1)
- # off-topic (1)
- # om (18)
- # onyx (17)
- # parinfer (1)
- # planck (1)
- # re-frame (13)
- # specter (7)
- # uncomplicate (1)
- # untangled (4)
- # vim (1)
- # yada (2)
I everyone! I have a manifold questions: Is there something like core.async/alt!
in manifold where I can wait for the next message on either one of several streams, or wait for the first of several deferreds to become resolved?
@andreas-thoelke: you can copy it from https://github.com/ztellman/manifold/pull/102/files for now - hasn't been merged into Manifold yet.
oh, how convenient, thanks!!
@dm3 thanks for this patch, it works as described. I was hoping though alt
would allow me to get similar behavior to core.async/alt!
or alts!
, however it seems it would have had to somehow cancel the leftover deferred/take! in order to not swallow values like in this example:
It seems the only way to do this in manifold is to merge/connect the two streams into one and then take from this combined stream.