-
Home
-
API
-
Avalonia.HeadlessTestingFramework.Appium
-
WaitHelper
-
Methods
-
UntilNotNullAsync(Func, String?)
UntilNotNullAsync(Func<T?>, String?) Method
Definition
Waits until a function returns a non-null value.
public Task<T> UntilNotNullAsync<T>(Func<T?> func, string? message = null)
where T : class
Type parameters
Parameters
- func
- Func<T>
The function to evaluate.
- message
- String
Optional message for timeout exception.
Returns