Skip to main content

new

Function new 

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

Create a new bounded mailbox.