nbchan::mpsc

Function channel

Source
pub fn channel<T>() -> (Sender<T>, Receiver<T>)
Expand description

Creates a new asynchronous channel, returning the sender/receiver halves.