rust-graceful-shutdown
Installation
SKILL.md
Graceful Shutdown
Patterns for clean service shutdown with proper resource cleanup.
Signal Handling
use tokio::signal;
async fn shutdown_signal() {
let ctrl_c = async {
signal::ctrl_c()
.await
.expect("Failed to install Ctrl+C handler");
};