UntilNotNullAsync(Func<T?>, String?) Method

Definition

Assembly HeadlessTestingFramework.dll

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

T
The result type.

Parameters

func
Func<T>

The function to evaluate.

message
String

Optional message for timeout exception.

Returns

Task<T>
The non-null result.