Skip to main content

bounded

Function bounded 

Source
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.