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).
capacity
Some
None