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.

On Sat, Oct 4, 2014 at 12:59 PM, Calder Coalson <caldercoal...@gmail.com> wrote:
> Hi,
>
> First, thanks for all your hard work, and for such a wonderful language! I'm
> quite new to Rust, but so far I've found it a real pleasure to work (and
> think) in.
>
> I did run into one small hitch with the standard library recently. I'm
> writing some multithreaded code that lends itself naturally to a multiple
> producer, multiple consumer model. I wanted to use std::comm's channels, but
> found they only support many-to-one channels. So I have two questions for
> the list:
> 1) Is there a trade off to offering many-to-many channels, or is it simply
> that no one has requested it yet?
> 2) If the latter, how can I help?
>
> Thanks!
> -Calder
>
> _______________________________________________
> Rust-dev mailing list
> Rust-dev@mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>



-- 
Peter Marheine
Don't Panic
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to