Skip to main content

fake_mpsc

Function fake_mpsc 

Source
pub(crate) fn fake_mpsc() -> (CountingSink<Sender<(AnyChanCell, Option<QueuedCellPaddingInfo>), MpscSpec>>, CountingStream<Receiver<(AnyChanCell, Option<QueuedCellPaddingInfo>), MpscSpec>>)
Expand description

Make an MPSC queue, of the type we use in Channels, but a fake one for testing