Skip to main content

channel

Function channel 

Source
pub fn channel<T>() -> (Tx<T>, Rx<T>)
Expand description

Create a channel pair with shared state.

Both ends hold an Arc reference to the same ChannelCore. The framework binds the handle that appears in args or return values, and the paired handle reads or takes the binding from the shared core.