TestingUtils.WaitUntilAsync Method

Definition

Overloads

WaitUntilAsync(Func<Boolean,Task<Boolean>>, TimeSpan)

Run the predicate until it succeed or times out

WaitUntilAsync(Func<Boolean,Task<Boolean>>, TimeSpan, Nullable<TimeSpan>)

Run the predicate until it succeed or times out

WaitUntilAsync(Func<Boolean,Task<Boolean>>, TimeSpan)

Run the predicate until it succeed or times out

public static System.Threading.Tasks.Task WaitUntilAsync (Func<bool,System.Threading.Tasks.Task<bool>> predicate, TimeSpan timeout);
static member WaitUntilAsync : Func<bool, System.Threading.Tasks.Task<bool>> * TimeSpan -> System.Threading.Tasks.Task
Public Function WaitUntilAsync (predicate As Func(Of Boolean, Task(Of Boolean)), timeout As TimeSpan) As Task

Parameters

predicate
Func<Boolean,Task<Boolean>>

The predicate to run

timeout
TimeSpan

The timeout value

Returns

True if the predicate succeed, false otherwise

Applies to

WaitUntilAsync(Func<Boolean,Task<Boolean>>, TimeSpan, Nullable<TimeSpan>)

Source:
TestingUtils.cs

Run the predicate until it succeed or times out

public static System.Threading.Tasks.Task WaitUntilAsync (Func<bool,System.Threading.Tasks.Task<bool>> predicate, TimeSpan timeout, TimeSpan? delayOnFail = default);
static member WaitUntilAsync : Func<bool, System.Threading.Tasks.Task<bool>> * TimeSpan * Nullable<TimeSpan> -> System.Threading.Tasks.Task
Public Shared Function WaitUntilAsync (predicate As Func(Of Boolean, Task(Of Boolean)), timeout As TimeSpan, Optional delayOnFail As Nullable(Of TimeSpan) = Nothing) As Task

Parameters

predicate
Func<Boolean,Task<Boolean>>

The predicate to run

timeout
TimeSpan

The timeout value

delayOnFail
Nullable<TimeSpan>

The time to delay next call upon failure

Returns

True if the predicate succeed, false otherwise

Applies to