pub fn oneshot<T>() -> (OneSender<T>, Receiver<T>) where T: Send,
Creates a channel that can be used to send a single value.
Use the returned Receiver to get the value.
Receiver