mount

tolitius 2017-03-14T04:06:26.357991Z

@dm3 can you give an example? i.e. close to where you would have this problem

dm3 2017-03-14T07:15:35.195381Z

First

(defstate process
   :start (let [v (get-value)] (do-with v)))
then
(defstate last-state
   :start (atom nil))

(defstate process
   :start (let [v (get-value)] (reset! last-state v) (do-with v)))

dm3 2017-03-14T07:16:51.202016Z

if last-state is evaluated after the process, it’s order sequence number will be higher, so if process/start starts without any delay, last-state will still be a NotStartedState