This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-13
Channels
- # announcements (13)
- # beginners (52)
- # bitcoin (2)
- # calva (2)
- # cider (7)
- # clara (1)
- # clj-commons (11)
- # clj-kondo (6)
- # cljdoc (14)
- # clojure (68)
- # clojure-belgium (1)
- # clojure-denmark (6)
- # clojure-europe (57)
- # clojure-nl (2)
- # clojure-norway (10)
- # clojure-uk (3)
- # clojurescript (7)
- # code-reviews (17)
- # conjure (1)
- # cursive (5)
- # dev-tooling (11)
- # emacs (9)
- # fulcro (12)
- # hugsql (20)
- # introduce-yourself (6)
- # joyride (2)
- # leiningen (1)
- # lsp (61)
- # malli (30)
- # missionary (11)
- # nbb (6)
- # off-topic (26)
- # portal (5)
- # practicalli (5)
- # re-frame (8)
- # releases (8)
- # sci (21)
- # shadow-cljs (3)
- # sql (17)
- # squint (1)
- # xtdb (3)
Which library does the error {"message": "Sleep cancelled"}
come from? I couldn't find it directly in Missionary's source
In one of our flows, we dispatch a sleep
to invoke something in 30 seconds. If we invoke sleep
, then cancel the flow, the flow's error handler receives the above JS object. I'm not sure I would consider this an error, so I wanted to find the code and get some more context on the design/implementation
it's in .java file, track it down from m/sleep
you can catch and discard this error – what's happening is, in response to the cancellation request, the sleep throws an exception as it's terminal value which is propagated per process supervision to propagate the termination to siblings and parents etc
m/watch and other continous flows have the same behavior
thank you! i appreciate the level of detail. for our use case, i think we'll just catch and discard this error as we expect this to happen when intentionally cancelling the flow
why doesn't (m/? (m/reduce conj (m/zip vector (m/seed [1 2 3]) (m/seed (repeat nil)))))
terminate?