you can’t wait in javascript, only attach callbacks
@dm3 So if :start
returns a Promise, then every time you use it (including in :stop
) you have to call .then
on it?
I have a question too, if I have defstate
like the following:
(defstate ^{:doc "The system config"}
map
:start (s/assert* :my/config (read-config)))
in ClojureScript, is the :start
method called (a therefore throw) when I require the namespace it lives in?