Dispatcher help class for Unity single threading.
More...
|
void | Enqueue (IEnumerator action, bool inFixedUpdate=false) |
| Schedule async function to be executed in coroutine.
|
|
void | Enqueue (Action action, bool async=false, bool inFixedUpdate=false) |
| Schedule function to be executed on Unity main thread.
|
|
Dispatcher help class for Unity single threading.
◆ Enqueue() [1/2]
void Dojo.Dispatcher.Enqueue |
( |
Action |
action, |
|
|
bool |
async = false , |
|
|
bool |
inFixedUpdate = false |
|
) |
| |
|
inline |
Schedule function to be executed on Unity main thread.
- Parameters
-
action | function to be executed |
async | function is async or not |
inFixedUpdate | run in Unity.Update or Unity.FixedUpdate |
◆ Enqueue() [2/2]
void Dojo.Dispatcher.Enqueue |
( |
IEnumerator |
action, |
|
|
bool |
inFixedUpdate = false |
|
) |
| |
|
inline |
Schedule async function to be executed in coroutine.
- Parameters
-
action | function to be executed |
inFixedUpdate | run in Unity.Update or Unity.FixedUpdate |
◆ Instance
◆ IsInitialized
bool Dojo.Dispatcher.IsInitialized |
|
staticget |
Is dispatcher instance initialized or not
The documentation for this class was generated from the following file:
- Unity/Assets/Dojo/Dispatcher.cs