Skip to main content

Module shutdown

Module shutdown 

Source
Expand description

Graceful-shutdown verification.

ShutdownProbe watches a set of components and emits one CheckResult per component plus an aggregate. A component is considered “drained” when its predicate returns true.

Structs§

ShutdownComponent
A component to drain.
ShutdownProbe
Polls a set of ShutdownComponents until they all drain or the deadline elapses.

Type Aliases§

DrainCheck
A predicate that returns true once the named component has reached a clean stopped state.