UxrTaskController Explicit Conversion (Func(CancellationToken, Task) to UxrTaskController)
Explicit conversion operator from Func(T, TResult) to UxrTaskController.
Namespace: UltimateXR.Core.Threading.TaskControllers
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static explicit operator UxrTaskController (
Func<CancellationToken, Task> taskFunc
)
Parameters
- taskFunc
- Type: System.Func(CancellationToken, Task)
A cancelable task that will be executed asynchronously until completion or Stop() is called.
Return Value
Type: UxrTaskController
A new instance of UxrTaskController wrapping taskFunc.
See Also
Reference
UxrTaskController Class
UltimateXR.Core.Threading.TaskControllers Namespace