pub fn channel<T>(capacity: Option<NonZeroUsize>) -> (Sender<T>, Receiver<T>)
Expand description
Create an unsync MPSC channel, either bounded (if capacity
is Some
) or unbounded (if capacity
is None
).
pub fn channel<T>(capacity: Option<NonZeroUsize>) -> (Sender<T>, Receiver<T>)
Create an unsync MPSC channel, either bounded (if capacity
is Some
) or unbounded (if capacity
is None
).