Skip to main content

eventually

Function eventually 

Source
pub async fn eventually<T, F, Fut>(timeout: Duration, check: F) -> Option<T>
where F: FnMut() -> Fut, Fut: Future<Output = Option<T>>,
Available on crate feature k8s only.
Expand description

Wait until check answers Some (polled every 100 ms), at most timeout; for asserting what a controller eventually does.