Interface IMainThreadCoroutineCommandHandler
Interface for basic handler of main thread commands.
Namespace: InsaneScatterbrain.Threading
Syntax
public interface IMainThreadCoroutineCommandHandler
Methods
Cancel()
Stops executing the command as soon as possible.
Declaration
void Cancel()
Queue(IMainThreadCoroutineCommand, bool)
Declaration
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
IEnumerator UpdateCoroutine()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |