Fork me on GitHub
#core-async
<
2018-04-25
>
lxsameer09:04:05

in this code some-fn will always run on the main thread, right ? (let [v (go (<! c))] (some-fn v))

dadair16:04:29

I have a pub-sub setup where the pub dispatch function is basically :type for events. Is there a way to set up the pub-sub dispatch/equality so that I could have a sub that responds to any event type (e.g., a sub that logs all events)? I assume I could just add another pub to the original channel with a more permissive dispatch function?

hiredman16:04:27

a mult up stream of the pub would do it

👍 4
hiredman16:04:34

(if you want all events)