News for hackers. Stuff that matters.
Re:Rust: learning how to share a queue between threads by yarper on Friday May 06, 2016 @08:18PM (#11647674)
This is the case for spsc (single producer, single consumer) channels, but the example I posted is for a mpsc (multiple producer single consumer) channel. Any number of threads can push data into it, as the example shows!

Having multiple receivers is slightly more complex, and you can't use std::sync::mpsc (obviously) but they are also possible.

There are no comments on this comment yet.