pub fn bounded<T>(cap: usize) -> (BoundedSender<T>, Receiver<T>)Expand description
Creates a bounded channel with the given capacity.
Panics if cap is 0.
pub fn bounded<T>(cap: usize) -> (BoundedSender<T>, Receiver<T>)Creates a bounded channel with the given capacity.
Panics if cap is 0.