Class MainThreadCommandHandler
Basic handler of main thread commands. It queues the commands and executes any commands in the queue on update.
Inheritance
object
MainThreadCommandHandler
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 MainThreadCommandHandler : IMainThreadCommandHandler
Methods
Cancel()
Stops executing any active commands as soon as possible.
Declaration
public void Cancel()
Queue(IMainThreadCommand, bool)
Declaration
public void Queue(IMainThreadCommand command, bool waitForCompletion = true)
Parameters
Type | Name | Description |
---|---|---|
IMainThreadCommand | command | |
bool | waitForCompletion |
Queue(Action, bool)
Declaration
[Obsolete("This overload will likely be removed in 2.0.")]
public void Queue(Action action, bool waitForCompletion = true)
Parameters
Type | Name | Description |
---|---|---|
System.Action | action | |
bool | waitForCompletion |
Update()
Declaration
public void Update()