Skip to main content

channel

Function channel 

Source
pub fn channel<T, const CAP: usize>() -> (SpscSender<T, CAP>, SpscReceiver<T, CAP>)
Expand description

Pairs a ring with its two ends for handing to separate threads.