Re: core.async pub/sub closing source channel issue

2015-03-01 Thread Leon Grapenthin
The reason for the behavior you are observing is a race condition. The effects of close! on the pub aren't synchronous. Even though the channel is immediately closed before return, consumers need time to determine that it has been closed. At the point in time the pub determines that the source

core.async pub/sub closing source channel issue

2015-03-01 Thread Jonas
Hi all! I’m working with core.async pub/sub and ran into an issue which I don’t quite understand. According to the clojure.core.async/sub docstring: > By default the channel will be closed when the source closes This is not the behaviour I’m seeing when I call clojure.core.async/unsub-all imme