Module nri::mpmc [-] [+] [src]

Multi-producer/multi-consumer channels

Written by "panicbit" on irc.mozilla.org #rust, slightly modified by me

Reexports

use std::prelude::v1::*;
use std::sync::{Mutex, Arc};
use std::sync::mpsc::{channel, Sender, Receiver, SendError};

Structs

MultiSender

Multi-producer, multi-consumer manager. Hands out channels and holds onto the sending ends, and has methods for sending to one or all of them.