pub fn daemon_shutdown_token() -> CancellationTokenExpand description
Process-wide daemon shutdown signal (ADR-119).
Cancelled exactly once, when the daemon’s unified shutdown future resolves
— before drain() begins waiting on tracked tasks — so long-running
daemon components supervised outside this module observe shutdown through
the same path the daemon itself does, rather than inventing their own.
Clones share the underlying token; child tokens derived from it are
cancelled transitively.
In non-daemon processes the token simply never fires.