Function thingbuf::mpsc::with_recycle
source · pub fn with_recycle<T, R: Recycle<T>>(
capacity: usize,
recycle: R
) -> (Sender<T, R>, Receiver<T, R>)
Available on crate feature
alloc
only.Expand description
Returns a new asynchronous multi-producer, single consumer (MPSC) channel with the provided capacity and recycling policy.