Skip to main content

new

Function new 

Source
pub fn new<T: Policy>(capacity: NonZeroUsize) -> (Sender<T>, Receiver<T>)
Expand description

Create a new bounded mailbox.