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

Constructs a pair of barrier endpoints, which transmits when the sender is dropped.