[][src]Function oneshot::channel

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

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