pub fn check_shutdown(cancel_token: &CancellationToken) -> boolExpand description
Check whether a graceful shutdown has been requested via either the global AtomicBool (OS signal) or a CancellationToken.
This helper consolidates the two shutdown mechanisms used throughout the codebase to reduce duplication and improve maintainability.