9 ms·
Using core.match with core.async does sound promising! Am I correct that Erlang-style selective receive would NOT be possible? I don't see this as much of a do
by bkirkbri 13y ago
Using core.match with core.async does sound promising! Am I correct that Erlang-style selective receive would NOT be possible?
I don't see this as much of a downside though, considering the issues one can have with selective receives.
- swannodette 13y agoYes I'm pretty sure selective receive is not supported.
- pron 13y agoIt is in Pulsar: * http://blog.paralleluniverse.co/post/49445260575/quasar-pulsar http://blog.paralleluniverse.co/post/49445260575/quasar-puls... * http://puniverse.github.io/pulsar/ http://puniverse.github.io/pulsar/
- snprbob86 13y agoYou 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.