WaitUntilAsync(Func<bool, Task<bool>>, TimeSpan, TimeSpan?)
static
public static Task WaitUntilAsync(Func<bool, Task<bool>> predicate, TimeSpan timeout, TimeSpan? delayOnFail = null)Run the predicate until it succeeds or times out.
Parameters
predicateFunc<bool, Task<bool>>- The predicate to run
timeoutTimeSpan- The timeout value
delayOnFailTimeSpan?- The time to delay next call upon failure
Returns
A task representing the operation.
Exceptions
System.TimeoutException- The predicate did not succeed before the timeout elapsed.
