Skip to main content

channel

Function channel 

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

Create a new asynchronous channel, returning (sender, receiver).

Takes no arguments, so named-arg lowering is a no-op here; the shim exists for module-level discoverability alongside the other helpers.