Function channel

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

Creates a pair of sender and corresponding receiver.