pub fn channel<T: Default + Clone>(capacity: usize) -> (Sender<T>, Receiver<T>)
Available on crate feature
alloc
only.Expand description
Returns a new asynchronous multi-producer, single consumer (MPSC) channel with the provided capacity.
This channel will use the [default recycling policy].