UxrLoopController Explicit Conversion (Action(CancellationToken) to UxrLoopController)

Explicit conversion operator from Action<T> to UxrLoopController.

Namespace: UltimateXR.Core.Threading.TaskControllers
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static explicit operator UxrLoopController (
	Action<CancellationToken> loopAction
)

Parameters

 

loopAction
Type: System.Action(CancellationToken)
A cancelable and loopable action that will be executing repeatedly until Stop() is called.

Return Value

Type: UxrLoopController
A new instance of UxrLoopController wrapping loopAction.

See Also

Reference

UxrLoopController Class
UltimateXR.Core.Threading.TaskControllers Namespace