This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-07-31
Channels
- # admin-announcements (23)
- # announcements (3)
- # beginners (59)
- # boot (122)
- # clojure (117)
- # clojure-berlin (3)
- # clojure-dev (3)
- # clojure-italy (3)
- # clojure-japan (10)
- # clojure-russia (69)
- # clojurebridge (12)
- # clojurescript (183)
- # clojutre (14)
- # code-reviews (4)
- # core-async (79)
- # core-logic (18)
- # core-matrix (1)
- # cursive (7)
- # datascript (1)
- # datomic (18)
- # editors (3)
- # events (18)
- # hoplon (20)
- # ldnclj (24)
- # luminus (1)
- # off-topic (1)
- # other-lisps (1)
- # re-frame (12)
- # reagent (104)
@jamesmintram: I am afraid the intentions behind your example aren't clear enough to be able to provide a meaningful input.
@holyjak: Thanks for taking a look - the purpose of the ALTs code is to detect when the Channel is full - instead of it blocking when we try to send the event through it. That particular technique I saw describe as an answer to this: http://tgk.github.io/2013/10/inspect-core-async-channels.html#comment-1084973602 So the async/alts!! call will return :failed when the channel is full - I just wondered if there was a better way to detect and respond to this than using (if (=
Oh, thanks for the explanation, that is good to know! And I should have read alts!
docstring better. I do not see if
as bad there, after all you are doing a decision.
Thanks!