bounded

Function bounded 

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

Make a blocking channel with finite size

Returns (sender, receiver)