Perfect! Closing the channel is simpler than using a kill channel (in the
cases when its possible to do this - if something else owns the channel
then you can't use this method of course).


On 1 September 2014 11:41, Dhruv Bhatia <dh...@dhruvbhatia.com> wrote:

> Thanks for reviewing my solution Daniel. I can confirm that
> cljs.core.async.impl.channels.ManyToManyChannel.closed gets set to true after
> my component is unmounted and (<! subscriber-ch)subsequently returns nil,
> so it looks to be working as expected!
>
> Cheers,
> Dhruv Bhatia
>
>
> On Aug 31, 2014, at 8:48 PM, Daniel Kersten <dkers...@gmail.com> wrote:
>
> I assume that (<! subscriber-ch)will return nil when subscriber-ch is
> closed? I vaguely remember this to be the case, though have not tested it.
> If it does, then your way looks good to me.
>
>
>  --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to