Closed grammati closed 7 years ago
Fixes #75
thanks for the pull request!
I'll let you pick, but what about instead of:
(#?(:clj isRealized
:cljs -realized?)
[_]
(boolean (:started (:status (@meta-state name)))))
do
(#?(:clj isRealized
:cljs -realized?)
[_]
(boolean ((running-states) name)))
running-states
returns a set of states that are currently running. I feel it'd be a bit cleaner than to use @meta-state
directly.
Thanks, that looks nicer. I pushed an update to use running-states.
looks good, thank you!
See: https://github.com/clojure/clojure/blob/b80e1fe4b14654d943e2f8b060b0bc56e18b4757/src/clj/clojure/core_print.clj#L422-L446