Function rendezvous::new_channel_with
source · pub fn new_channel_with<T: Send, P: DeadlockPrevention>(
) -> (Sender<T, P>, Receiver<T, P>)
Expand description
Creates a new rendezvous channel with the specified deadlock prevention method.
See new_channel()
for more details.
The rendezvous channel uses a wait queue internally and hence exposes a
deadlock prevention type parameter P
that is [Spin
] by default.
See [WaitQueue
]’s documentation for more info on setting this type parameter.