Skip to main content

stop_requested

Function stop_requested 

Source
pub async fn stop_requested()
Expand description

Resolves when the Windows service control manager asks this process, running as the kernel’s service, to stop or the system is shutting down (spec 3.2 §10 W3); never otherwise, and never on other platforms, whose service managers send SIGTERM. Kernel::shutdown_on_signal waits for it.

§Example

tokio::select! {
    _ = tokio::signal::ctrl_c() => {}
    () = adk_kernel::service::stop_requested() => {}
}