Skip to main content

listener

Function listener 

Source
pub async fn listener() -> SoftCycleListener<'static> 
Available on crate feature global_instance only.
Expand description

Listener that resolves when a restart or shutdown is triggered on the global SoftCycleController instance.

Returns true if a shutdown was triggered, and false if a restart was triggered.