Skip to main content

bounded

Function bounded 

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

Create a channel which holds up to capacity messages, which must not be zero.