Method wait.until
Overload
Waits for a user-defined condition. Until the callback function returns a value other than default(T)
, for example true
.
public static T until<T>(Seconds timeout, Func<T> condition)
Parameters
timeout (Seconds)
Timeout, seconds. Can be 0 (infinite), >0 (exception) or <0 (no exception). More info: Wait timeout. |
condition (Func<T>)
Callback function (eg lambda). It is called repeatedly, until returns a value other than |
Returns
T
Returns the value returned by the callback function. On timeout returns |
Exceptions
Type Parameters
T |
Examples
See wait.