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

Creates a new oneshot channel and returns the two endpoints, Sender and Receiver.