pub async fn setup_signal_hook(shutdown_signal: Arc<Notify>)
Expand description
Sets up cross-platform signal handling for graceful shutdown. On Unix systems, handles SIGINT and SIGTERM signals. On Windows, handles Ctrl+C signal.
§Arguments
shutdown_signal
-Arc<Notify>
to signal shutdown to other parts of the application.
§Panics
The function panics if it fails to create the signal handlers.