This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-13
Channels
- # beginners (78)
- # boot (27)
- # cider (13)
- # cljs-dev (41)
- # cljsrn (4)
- # clojure (216)
- # clojure-android (1)
- # clojure-conj (6)
- # clojure-greece (1)
- # clojure-italy (11)
- # clojure-russia (127)
- # clojure-spec (63)
- # clojure-uk (34)
- # clojurescript (68)
- # core-async (5)
- # cursive (5)
- # data-science (1)
- # datomic (4)
- # dirac (11)
- # editors (7)
- # events (1)
- # graphql (12)
- # hoplon (39)
- # jobs (1)
- # liberator (3)
- # lumo (101)
- # off-topic (14)
- # om (3)
- # onyx (3)
- # parinfer (14)
- # re-frame (10)
- # reagent (2)
- # remote-jobs (1)
- # ring-swagger (17)
- # sql (21)
- # untangled (38)
- # vim (3)
- # yada (23)
Hi, Is it possible to interrupt this loop?
(go
(while true
(try
(<! ch)
...
(catch Exception ex
...))))
I have code like this, but it's likely the loop will stop after a few time. ch is a (chan (dropping-buffer 1))
, when the loop is stopped, I can get the item in ch with (<!! ch)
.
And there's no error log(even though I logged in catch clause). So I wondering in which situation the loop will stop.how do you know it "stops"? does the ... have any other channel operations? what version of core.async are you using? before 0.3.426 exception handling was pretty broken