[−][src]Function websocket::async::futures::unsync::oneshot::channel
pub fn channel<T>() -> (Sender<T>, Receiver<T>)
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.