UxrLoopController Constructor
Constructor.
Namespace: UltimateXR.Core.Threading.TaskControllers
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public UxrLoopController(
Action<CancellationToken> loopAction,
int autoStartDelay = -1
)
Parameters
- loopAction
- Type: System.Action(CancellationToken)
A cancelable and loopable action that will be executing repeatedly until Stop() is called. - autoStartDelay (Optional)
- Type: System.Int32
- If set, loopAction starts looping after autoStartDelay milliseconds.
- If not set, loopAction starts looping immediately.
See Also
Reference
UxrLoopController Class
UltimateXR.Core.Threading.TaskControllers Namespace