Dispatches Actions & Coroutines between Threads
More...
|
static void | RunAsync (Action action) |
| Runs Action on Thread More...
|
|
static void | RunAsync (Action< object > action, object state) |
| Runs Action with State on Thread More...
|
|
static void | RunAsync (Action< object[]> action, params object[] state) |
| Runs Action with State on Thread More...
|
|
static void | RunOnMainThread (Action action) |
| Runs Action on the Unity Main Thread More...
|
|
static void | RunOnMainThread (Action< object[]> action, params object[] parameters) |
| Runs an Action with Parameters on the Unity Main Thread More...
|
|
static Coroutine | RunCoroutine (IEnumerator routine) |
| Runs Coroutine on Dispatcher-GameObject More...
|
|
static void | RunCoroutineOnMainThread (IEnumerator routine) |
| Runs Coroutine on Main Thread from any Thread More...
|
|
Dispatches Actions & Coroutines between Threads
Script by Frank van Hoof https://vanhoof.dev
◆ RunAsync() [1/3]
static void MsecUnitySdk.Utils.Dispatcher.RunAsync |
( |
Action |
action | ) |
|
|
inlinestatic |
Runs Action on Thread
- Parameters
-
◆ RunAsync() [2/3]
static void MsecUnitySdk.Utils.Dispatcher.RunAsync |
( |
Action< object > |
action, |
|
|
object |
state |
|
) |
| |
|
inlinestatic |
Runs Action with State on Thread
- Parameters
-
action | Action to Invoke |
state | State for Action |
◆ RunAsync() [3/3]
static void MsecUnitySdk.Utils.Dispatcher.RunAsync |
( |
Action< object[]> |
action, |
|
|
params object[] |
state |
|
) |
| |
|
inlinestatic |
Runs Action with State on Thread
- Parameters
-
action | Action to Invoke |
state | State for Action |
◆ RunCoroutine()
static Coroutine MsecUnitySdk.Utils.Dispatcher.RunCoroutine |
( |
IEnumerator |
routine | ) |
|
|
static |
Runs Coroutine on Dispatcher-GameObject
- Parameters
-
- Returns
- Routine-Reference
◆ RunCoroutineOnMainThread()
static void MsecUnitySdk.Utils.Dispatcher.RunCoroutineOnMainThread |
( |
IEnumerator |
routine | ) |
|
|
static |
Runs Coroutine on Main Thread from any Thread
- Parameters
-
◆ RunOnMainThread() [1/2]
static void MsecUnitySdk.Utils.Dispatcher.RunOnMainThread |
( |
Action |
action | ) |
|
|
inlinestatic |
Runs Action on the Unity Main Thread
- Parameters
-
◆ RunOnMainThread() [2/2]
static void MsecUnitySdk.Utils.Dispatcher.RunOnMainThread |
( |
Action< object[]> |
action, |
|
|
params object[] |
parameters |
|
) |
| |
|
inlinestatic |
Runs an Action with Parameters on the Unity Main Thread
- Parameters
-
action | Action to Invoke |
parameters | Parameters for Action |
The documentation for this class was generated from the following file: