Function channel

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

Creates a new channel of the requested capacity

Returns the Sender and Receiver halves.