channel

Function channel 

Source
pub fn channel() -> (ShutdownSender, ShutdownReceiver)
Expand description

Creates a broadcasting shutdown channel.

The sending side is responsible for initiating a shutdown. The receiving side is responsible for responding to shutdowns.