Hi guys!
In m/join , can the function have little side effect (like swap! an atom). For example:
(m/join
(fn [a b c]
(swap! ... a b c)
{:a a :b b :c c})
...)yes, as long as it returns quickly
I've been wondering about this, also in the docs it mentions being quick. But what are the implications of not being quick?
it will block the progression of everything that depends on this event
Thank you, that’s good to know and makes sense.
the function may be called from a thread that's not supposed to perform blocking IO, like an event handler or a cpu-bound pool