Skip to main content

check_shutdown

Function check_shutdown 

Source
pub fn check_shutdown(cancel_token: &CancellationToken) -> bool
Expand 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.