Class Dispatcher
Inheritance
System.Object
Dispatcher
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: PiXYZ.Utils
Assembly: cs.temp.dll.dll
Syntax
public static class Dispatcher
Methods
DelayFrames(Int32)
Declaration
public static Dispatcher.DelayFramesDispatch DelayFrames(int frames)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | frames |
Returns
Type | Description |
---|---|
Dispatcher.DelayFramesDispatch |
GoMainThread()
Declaration
public static Dispatcher.GoMainThreadDispatch GoMainThread()
Returns
Type | Description |
---|---|
Dispatcher.GoMainThreadDispatch |
GoThreadPool()
Declaration
public static Dispatcher.GoThreadPoolDispatch GoThreadPool()
Returns
Type | Description |
---|---|
Dispatcher.GoThreadPoolDispatch |
SleepForSeconds(Single)
Declaration
public static Dispatcher.SleepForSecondsDispatch SleepForSeconds(float seconds)
Parameters
Type | Name | Description |
---|---|---|
System.Single | seconds |
Returns
Type | Description |
---|---|
Dispatcher.SleepForSecondsDispatch |
StartCoroutine(IEnumerator)
Starts a coroutine. Similar to Unity's coroutine, except that it can switch threads. Yield instructions to use are all static methods in the Dispatcher class.
Declaration
public static void StartCoroutine(IEnumerator enumerable)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerator | enumerable |
Update()
Update callback, connected to editor loop and game loop, in order to be able to dispatch instructions in the main thread in editor or play mode.
Declaration
public static void Update()
WaitForSeconds(Single)
Declaration
public static Dispatcher.WaitForSecondsDispatch WaitForSeconds(float seconds)
Parameters
Type | Name | Description |
---|---|---|
System.Single | seconds |
Returns
Type | Description |
---|---|
Dispatcher.WaitForSecondsDispatch |
Events
OnUpdate
Declaration
public static event VoidHandler OnUpdate
Event Type
Type | Description |
---|---|
VoidHandler |