UxrTaskController Constructor

Constructor.

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

Syntax

C#

public UxrTaskController(
	Func<CancellationToken, Task> taskFunc,
	bool autoStart = false
)

Parameters

 

taskFunc
Type: System.Func(CancellationToken, Task)
A cancelable task which that be executed asynchronously until completion or Stop() is called.
autoStart (Optional)
Type: System.Boolean
 
  • false (False in Visual Basic): - Start() needs to be called in order to start taskFunc execution.
  • true (True in Visual Basic): - taskFunc starts executing immediately.

See Also

Reference

UxrTaskController Class
UltimateXR.Core.Threading.TaskControllers Namespace