Function rendezvous::new_channel

source ·
pub fn new_channel<T: Send>() -> (Sender<T>, Receiver<T>)
Expand description

Creates a new rendezvous channel with the default deadlock prevention method.

For the vast majority of use cases, this function is recommended way to create a new channel, because there is no need to specify a deadlock prevention method. To create a channel with different deadlock prevention, see new_channel_with().