use *;
/// Computes a thread-affine shard index from the caller's OS stack address without TLS or atomics.
///
/// # Returns
///
/// - `usize` - Shard index in `0..SHUTDOWN_SHARD_COUNT`.
pub
/// Waits for Unix `SIGTERM` when enabled, or remains pending on non-Unix platforms or when disabled.
///
/// # Arguments
///
/// - `bool` - Whether `SIGTERM` handling is enabled.
pub async