pub(crate) async fn WaitForShutdownSignal()Expand description
Shutdown signal handler for graceful termination
This function waits for either Ctrl+C (SIGINT) or SIGTERM signals and then initiates the shutdown sequence. It provides a timeout to handle cases where signal handlers fail to install properly.
ยงTODO
- Add configurable shutdown timeout (currently infinite)
- Implement signal handling for SIGHUP (reload config)
- Add Windows-specific signal handling beyond Ctrl+C
- Implement graceful timeout with pending operation completion