Function shutdown_signal
Source pub async fn shutdown_signal()
Expand description
Create a simple shutdown future that completes on SIGTERM/SIGINT
This is a convenience function for simple use cases where you just
need to wait for shutdown.
§Example
ⓘaxum::serve(listener, app)
.with_graceful_shutdown(shutdown_signal())
.await?;