Class MainThreadCommandHandler
Basic handler of main thread commands. It queues the commands and executes any commands in the queue on update.
Inheritance
System.Object
MainThreadCommandHandler
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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, Boolean)
Declaration
public void Queue(IMainThreadCommand command, bool waitForCompletion = true)
Parameters
Type | Name | Description |
---|---|---|
IMainThreadCommand | command | |
System.Boolean | waitForCompletion |
Queue(Action, Boolean)
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 | |
System.Boolean | waitForCompletion |
Update()
Declaration
public void Update()