pub async fn listener() -> SoftCycleListener<'static, SoftCycleMessage> ⓘAvailable on crate feature
global_instance only.Expand description
Listener on the global controller.
Resolves with Ok(SoftCycleMessage::Shutdown) for shutdown and
Ok(SoftCycleMessage::Restart) for restart.
Equivalent to calling get_lifetime_controller().await.listener().