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 <[email protected]> wrote: > 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 <[email protected]> > wrote: > >> 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. > >
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
