Creates new thread which runs the given action and starts it after creation. The given action will be wrapped so that any exception will be catched and logged.

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

Syntax

C#
public static ActionThread CreateThread(
	Action action
)
Visual Basic
Public Shared Function CreateThread ( _
	action As Action _
) As ActionThread
Visual C++
public:
static ActionThread^ CreateThread(
	Action^ action
)

Parameters

action
Type: System..::..Action
The action which the new thread should run.

Return Value

The instance of the created thread class.

See Also