Fork me on GitHub
#missionary
<
2023-06-23
>
Dustin Getz18:06:44

I found myself wanting swap! on m/mbx (which is a discrete atom), but then I realized that I can just use m/watch on an atom and elide the m/relieve so as to keep the flow discrete. Is this correct?

leonoel19:06:27

how is it consumed ?

Dustin Getz19:06:42

consuming it discretely from m/ap

Dustin Getz19:06:50

(m/stream (mx/poll-task !mbx))

leonoel19:06:53

it is legal and idiomatic to consume a watch as a discrete flow of successive states

👍 2