This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-10
Channels
- # aatree (4)
- # admin-announcements (1)
- # beginners (62)
- # boot (279)
- # business (14)
- # cider (1)
- # cljsrn (3)
- # clojure (88)
- # clojure-czech (3)
- # clojure-madison (2)
- # clojure-poland (117)
- # clojure-russia (74)
- # clojurescript (168)
- # core-async (8)
- # css (6)
- # datavis (39)
- # datomic (67)
- # devcards (2)
- # dirac (1)
- # editors (9)
- # emacs (13)
- # events (2)
- # hoplon (2)
- # jobs (9)
- # ldnclj (38)
- # lein-figwheel (9)
- # leiningen (7)
- # luminus (4)
- # off-topic (77)
- # om (114)
- # omnext (1)
- # onyx (221)
- # parinfer (10)
- # portland-or (5)
- # proton (3)
- # re-frame (24)
- # reagent (14)
- # ring-swagger (13)
Hi. Having a standard (go-loop [] (let [v (<! ch)] ...processing the value...))
, is it possible to "cancel" body of the loop in a way not unlike cancelling AJAX request in the Web?
not unless you build in an explicit point where you can listen for an external signal (using a cancel
lation channel)
I should add: "when a new data arrives" (to the channel)
I see. Yes. Launch/dispatch the processing elsewhere using a function that returns a channel with the result value... then use alts!
to wait for either that channel or the original input channel
Thanks! I wonder if some standard feature would help me with this. I'll check out alts!
func and it's siblings then