Skip to main content

bounded

Function bounded 

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

Creates a channel with positive buffer capacity and DEFAULT_WAIT_CAPACITY outstanding waiters per direction. Selected tickets count toward this limit. Zero-capacity rendezvous channels are not supported.