Function bchannel::channel
[−]
[src]
pub fn channel<T, E>() -> (Sender<T, E>, Receiver<T, E>) where
T: Send + 'static,
E: Send + 'static,
Returns a Sender-Receiver pair sending messages of type T, and can fail with an error of type E.