Expand description
Graceful shutdown utilities for the atrg server.
Provides a signal-awaiting future suitable for
[axum::serve::Serve::with_graceful_shutdown] and a post-shutdown cleanup
helper that drains the database pool with a configurable timeout.
Functionsยง
- shutdown_
cleanup - Run cleanup tasks after the server stops accepting connections.
- shutdown_
signal - Future that resolves when the process receives a shutdown signal.