iOSApp.WaitFor 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.
Generic wait function that will repeatly call the predicate
function until it returns true
.
Throws a TimeoutException if the predicate is not fullfilled within the time limit.
public void WaitFor (Func<bool> predicate, string timeoutMessage = "Timed out waiting...", Nullable<TimeSpan> timeout = null, Nullable<TimeSpan> retryFrequency = null, Nullable<TimeSpan> postTimeout = null);
abstract member WaitFor : Func<bool> * string * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<TimeSpan> -> unit
override this.WaitFor : Func<bool> * string * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<TimeSpan> -> unit
Public Sub WaitFor (predicate As Func(Of Boolean), Optional timeoutMessage As String = "Timed out waiting...", Optional timeout As Nullable(Of TimeSpan) = null, Optional retryFrequency As Nullable(Of TimeSpan) = null, Optional postTimeout As Nullable(Of TimeSpan) = null)
Parameters
- timeoutMessage
- String
The message used in the TimeoutException.