Skip to main content

DrainCheck

Type Alias DrainCheck 

Source
pub type DrainCheck = Box<dyn Fn() -> Pin<Box<dyn Future<Output = bool> + Send>> + Send + Sync>;
Expand description

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

The closure may be async (return a future). The probe polls it on a configurable interval until the predicate returns true or the deadline elapses.

Aliased Typeยง

pub struct DrainCheck(/* private fields */);