Function futures::unsync::oneshot::channel[][src]

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

Creates a new futures-aware, one-shot channel.

This function is the same as sync::oneshot::channel except that the returned values cannot be sent across threads.