[rust-dev] Many-to-many channels
caldercoalson at gmail.com
Sat Oct 4 13:25:10 PDT 2014
On closer inspection, mpmc_bounded_queues aren't quite what I want. I want
consumers to block if the queue is empty rather than returning None.
On Sat, Oct 4, 2014 at 12:21 PM, Calder Coalson <caldercoalson at gmail.com>
> That's exactly what I was looking for, thanks!
> Out of curiosity, why are Rust channels built on top of MPSC queues rather
> than MPMC queues?
> On Sat, Oct 4, 2014 at 12:06 PM, Peter Marheine <peter at taricorp.net>
>> Is there a particular reason you need a Channel rather than some other
>> primitive? If not, sync::mpmc_bounded_queue will probably do what
>> you're looking for.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rust-dev