pub fn oneshot<T>() -> (OneSender<T>, Receiver<T>) where
    T: Send
Expand description

Creates a channel that can be used to send a single value.

Use the returned Receiver to get the value.