Function two_lock_queue::channel [] [src]

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

Creates a new channel of the requested capacity

Returns the Sender and Receiver halves.