wait_for_async

Function wait_for_async 

Source
pub async fn wait_for_async<F, Fut>(
    timeout: Duration,
    interval: Duration,
    condition: F,
)
where F: FnMut() -> Fut, Fut: Future<Output = bool>,
Expand description

Wait for an async condition to become true.

ยงPanics

Panics if the condition is not met within the timeout.