Class MainThreadCoroutineCommandHandler
Basic handler of main thread commands. It queues the commands and executes any commands in the queue on update.
Implements
Inherited Members
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()
Executes all queued commands on the main thread. If they're done, they are removed from the queue.
Declaration
public IEnumerator UpdateCoroutine()
Returns
Type | Description |
---|---|
IEnumerator |