This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-13
Channels
- # aleph (1)
- # beginners (105)
- # boot (6)
- # cider (9)
- # cljs-dev (61)
- # cljsrn (59)
- # clojure (132)
- # clojure-germany (1)
- # clojure-italy (6)
- # clojure-russia (18)
- # clojure-spec (1)
- # clojure-uk (58)
- # clojurescript (56)
- # core-async (1)
- # cursive (17)
- # datomic (20)
- # docs (1)
- # duct (5)
- # editors (1)
- # emacs (7)
- # events (2)
- # figwheel (7)
- # fulcro (30)
- # graphql (8)
- # jobs (3)
- # leiningen (23)
- # luminus (14)
- # mount (6)
- # off-topic (41)
- # onyx (14)
- # protorepl (2)
- # re-frame (7)
- # reagent (32)
- # shadow-cljs (236)
- # tools-deps (92)
- # unrepl (8)
- # vim (60)
- # yada (1)
@darnok what do you mean by parallel states
?
mount starts/stops state serially in order very close to the way they are compiled (that's how mount discovers them and records the order). hence if you run (mount/start)
and one of these states fails the "start chain of events" will abort with an exception.
I mean that they are not required by each other. I'm asking because I have this case that I have one state - cassandra session and the other - queue consumer. The cassandra client doesn't start, but the consumer starts (starts thread pool, etc.). So I have cassandra state not valid, and the consuming functions throw exceptions because cannot deref cassandra session var.
I'm sorry for confusion. It seems that the problem was elsewhere. I had in code a future
call and it was preventing shutdown of app.