Skip to main content

drain_timeout

Function drain_timeout 

Source
pub fn drain_timeout() -> Duration
Expand description

The bound drain() waits for tracked background tasks at daemon shutdown (KHIVE_DRAIN_TIMEOUT_SECS, default 10s). Public so component supervision can clamp per-component shutdown timeouts against it — a component timeout longer than the drain bound could never complete its abort/state transition before the daemon returns.