channel

Function channel 

Source
pub fn channel<T>() -> (Sender<T>, Receiver<T>)
Expand description

Return a fresh oneshot channel