pub async fn wait_for_async<F, Fut>( timeout: Duration, interval: Duration, condition: F, )where F: FnMut() -> Fut, Fut: Future<Output = bool>,
Wait for an async condition to become true.
Panics if the condition is not met within the timeout.