TestingUtils.WaitUntilAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
- timeout
- TimeSpan
The timeout value
Returns
True if the predicate succeed, false otherwise