Hello friends,

I've read several blog posts about channels but must admit I feel there's 
something basic that I'm not yet getting... 

We're supposed to be able to avoid callback hell by using channels. But 
callbacks can be many-to-many (a single function can be registered as the 
callback for more than one event; a single event can have multiple 
callbacks registered for it) And if I understand it correctly, channels are 
always one-to-one.

So how does one use channels if one is accustomed to registering several 
callbacks to a single event? Do you have an intermediary which takes one 
value from the source channel and then puts the value on as many other 
channels as there are subscribers?

And as for hooking up a single function to more than one channel, is that 
where you'd use alts! ? But does that mean you have to know all the 
channels you're interested in vs having the freedom to take the same 
function and have it take from any additional channel?

Thanks in advance for any help!

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to