TaskExt.WaitWhile Method

Overload List

NameDescription
Public methodStatic memberWaitWhile(Func(Boolean), CancellationToken) Creates an awaitable task that blocks while a condition is true or the task is canceled.
Public methodStatic memberWaitWhile(Func(Boolean), Int32, CancellationToken) Creates an awaitable task that blocks while a condition is true, a timeout occurs or the task is canceled.
Public methodStatic memberWaitWhile(Func(Boolean), Single, Action, CancellationToken) Creates an awaitable task that blocks while a condition is true, waiting a certain amount of seconds at maximum. An optional action can be called if the task was cancelled or it timed out.

See Also

Reference

TaskExt Class
UltimateXR.Extensions.System.Threading Namespace