Creates new thread which runs the given action. 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<ActionThread> action, bool autoStartThread ) |
| Visual Basic |
|---|
Public Shared Function CreateThread ( _ action As Action(Of ActionThread), _ autoStartThread As Boolean _ ) As ActionThread |
| Visual C++ |
|---|
public: static ActionThread^ CreateThread( Action<ActionThread^>^ action, bool autoStartThread ) |
Parameters
- action
- Type: System..::..Action<(Of <(<'ActionThread>)>)>
The action which the new thread should run.
- autoStartThread
- Type: System..::..Boolean
True when the thread should start immediately after creation.