Skip to main content

shutdown_signal

Function shutdown_signal 

Source
pub async fn shutdown_signal()
Expand description

Graceful shutdown helper.

Returns a future that completes when a SIGTERM or SIGINT is received. Use with tokio::select! to implement graceful shutdown.