Function relm4::shutdown::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.