Creates a new Thread which runs the given action.

Namespace: UnityThreading
Assembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public ActionThread(
	Action<ActionThread> action,
	bool autoStartThread
)
Visual Basic
Public Sub New ( _
	action As Action(Of ActionThread), _
	autoStartThread As Boolean _
)
Visual C++
public:
ActionThread(
	Action<ActionThread^>^ action, 
	bool autoStartThread
)

Parameters

action
Type: System..::..Action<(Of <(<'ActionThread>)>)>
The action to run.
autoStartThread
Type: System..::..Boolean
Should the thread start after creation.

See Also