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

2015-03-01 Thread Leon Grapenthin
ribed channels to be closed as a consequence of closing the source channel. On Sunday, March 1, 2015 at 2:17:20 PM UTC+1, Jonas wrote: > > 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 docstri

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-

Re: core.async pub/sub

2014-03-05 Thread Scott Johnson
not sure when then added this but it looks like pub and sub are in the async lib now. any differences between what they have now and what you need? looking for some examp

Re: core.async pub/sub

2013-07-11 Thread Thomas Heller
Hey, the lab stuff looks very interesting, I however couldn't quite figure out how to "unsubscribe" one channel from the broadcast since I cannot exchange the "topic" for every subscriber when one subscriber decides to leave. Its also a lot lower level than I'm currently comfortable with since

Re: core.async pub/sub

2013-07-10 Thread Alex Miller
There is a broadcast fn in the lab namespace (https://github.com/clojure/core.async/blob/master/src/main/clojure/clojure/core/async/lab.clj) that does this and I believe David Nolen has created a different variant in some of his stuff. The lab one is experimental and would welcome feedback on

core.async pub/sub

2013-07-09 Thread Thomas Heller
Hey, I'm doing some core.async tests and want to create a basic pub/sub model. Messages are >! on one channel and >! to many others. (deftest ^:wip async-test2 (let [subscribers (atom []) events (chan 100)] (go (loop [] (when-let [ev (! events i) (r