Skip to main content

wait_for

Function wait_for 

Source
pub async fn wait_for<F, Fut>(
    check: F,
    interval: Duration,
    max_wait: Duration,
) -> bool
where F: Fn() -> Fut, Fut: Future<Output = bool>,
Expand description

Wait for a condition with timeout - condition-based, not time-based