Class MainThreadCoroutineCommandHandler
Basic handler of main thread commands. It queues the commands and executes any commands in the queue on update.
Inheritance
object
MainThreadCoroutineCommandHandler
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: InsaneScatterbrain.Threading
Syntax
public class MainThreadCoroutineCommandHandler : IMainThreadCoroutineCommandHandler
Constructors
MainThreadCoroutineCommandHandler()
Declaration
public MainThreadCoroutineCommandHandler()
Methods
Cancel()
Stops executing any commands as soon as possible.
Declaration
public void Cancel()
Queue(IMainThreadCoroutineCommand, bool)
Declaration
public void Queue(IMainThreadCoroutineCommand command, bool waitForCompletion = true)
Parameters
Type | Name | Description |
---|---|---|
IMainThreadCoroutineCommand | command | |
bool | waitForCompletion |
UpdateCoroutine()
Declaration
public IEnumerator UpdateCoroutine()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |