Function eventually

Source
pub async fn eventually<F>(condition: impl Fn() -> F) -> bool
where F: Future<Output = bool>,
Expand description

Checks the condition five times with increasing delays. Returns true if it is met.