Re:Clojure core.async Channels
by swannodette on Friday June 28, 2013 @05:11PM
(#5960364)
Yes I'm pretty sure selective receive is not supported.
[ Parent
| on HN ]
It is in Pulsar:
* http://blog.paralleluniverse.co/post/49445260575/quasar-puls...
You can mimic selective receive using a router process. Essentially, you could generate one channel for every branch of the pattern match, then generate a process which reads from the input channel and deals the message to the appropriate branching channel.