Dojo
Loading...
Searching...
No Matches
Dojo.Dispatcher Class Reference

Dispatcher help class for Unity single threading. More...

Inheritance diagram for Dojo.Dispatcher:

Public Member Functions

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.
 

Properties

static Dispatcher Instance [get]
 
static bool IsInitialized [get]
 

Detailed Description

Dispatcher help class for Unity single threading.

Member Function Documentation

◆ 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
actionfunction to be executed
asyncfunction is async or not
inFixedUpdaterun 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
actionfunction to be executed
inFixedUpdaterun in Unity.Update or Unity.FixedUpdate

Property Documentation

◆ Instance

Dispatcher Dojo.Dispatcher.Instance
staticget

Global instance

◆ IsInitialized

bool Dojo.Dispatcher.IsInitialized
staticget

Is dispatcher instance initialized or not


The documentation for this class was generated from the following file: