Skip to main content

shutdown_signal

Function shutdown_signal 

Source
pub async fn shutdown_signal() -> Result<()>
Expand description

Wait for a process shutdown signal.

On Unix this treats SIGTERM the same as Ctrl+C so long-lived services can drain gracefully when stopped by process supervisors.