Method WaitForAsync
WaitForAsync<TObject, T1>(TObject, Func<TObject, T1>, Predicate<T1>, TimeSpan, int)
Declaration
public static Task<T1> WaitForAsync<TObject, T1>(this TObject instance, Func<TObject, T1> extractor, Predicate<T1> condition, TimeSpan timeout, int retries = 5)
Parameters
| Type | Name | Description |
|---|---|---|
| TObject | instance | |
| Func<TObject, T1> | extractor | |
| Predicate<T1> | condition | |
| TimeSpan | timeout | |
| int | retries |
Returns
| Type | Description |
|---|---|
| Task<T1> |
Type Parameters
| Name | Description |
|---|---|
| TObject | |
| T1 |