pub fn channel<T>() -> (Sender<T>, Receiver<T>)
Creates a new oneshot channel and returns the two endpoints, Sender and Receiver.
Sender
Receiver