Fork me on GitHub
#core-async
<
2015-09-24
>
sonnyto16:09:58

I think I found a bug with core.async . Here is code to reproduce it https://gist.github.com/sonwh98/a5d34e47577bcd333eaf

sonnyto16:09:10

it fails in both clojure and clojurescript

sonnyto16:09:20

am I doing something wrong? or is it really a bug?

sonnyto16:09:50

a subscriber to a topic blocks other subscriber from recieving messages

sonnyto16:09:59

seems like a bug to me

Lambda/Sierra18:09:11

@sonnyto: This is by design, not a bug, because the channels in your example are unbuffered.

Lambda/Sierra18:09:33

From the docstring of pub: Each item is distributed to all subs in parallel and synchronously, i.e. each sub must accept before the next item is distributed. Use buffering/windowing to prevent slow subs from holding up the pub.