pub fn with_recycle<T, R: Recycle<T>>(
capacity: usize,
recycle: R
) -> (Sender<T, R>, Receiver<T, R>)
Available on crate feature
std
only.Expand description
Returns a new synchronous multi-producer, single consumer channel with the provided recycling policy.