This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-09
Channels
- # beginners (20)
- # boot (4)
- # cider (2)
- # cljs-dev (25)
- # clojure (45)
- # clojure-dev (1)
- # clojure-greece (5)
- # clojure-italy (20)
- # clojure-nl (12)
- # clojure-russia (11)
- # clojure-uk (256)
- # clojurescript (176)
- # data-science (33)
- # datomic (47)
- # docs (1)
- # duct (13)
- # fulcro (54)
- # graphql (24)
- # hoplon (3)
- # jobs (1)
- # leiningen (32)
- # luminus (3)
- # midje (1)
- # mount (2)
- # off-topic (3)
- # onyx (5)
- # overtone (1)
- # parinfer (12)
- # pedestal (4)
- # re-frame (60)
- # reagent (11)
- # reitit (3)
- # ring-swagger (21)
- # rum (1)
- # shadow-cljs (16)
- # spacemacs (23)
- # tools-deps (19)
- # vim (79)
@richiardiandrea depending on how you "do async", you can use a (mount/running-states)
function that returns a set of states that are currently running (i.e. started):
dev=> (mount/running-states)
#{"#'app.example/nrepl" "#'app.conf/config" "#'app.db/conn"}
dev=> (mount/stop #'app.db/conn)
INFO app.db - disconnecting from datomic:
{:stopped ["#'app.db/conn"]}
dev=> (mount/running-states)
#{"#'app.example/nrepl" "#'app.conf/config"}
dev=> ((mount/running-states) "#'app.conf/config")
"#'app.conf/config"
dev=> ((mount/running-states) "#'app.db/conn")
nil
Great that is already good, I thought I should roll my own transitions