Function fake_mpsc

Source
pub(crate) fn fake_mpsc<T: HasMemoryCost + Debug + Send>(
    buffer: usize,
) -> (Sender<T, MpscSpec>, Receiver<T, MpscSpec>)
Available on crate feature testing only.
Expand description

Make an MPSC queue, of any type, that participates in memquota, but a fake one for testing