Class MainThreadCommand
Contains an action to execute on the main thread and its current status.
Inheritance
System.Object
MainThreadCommand
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 MainThreadCommand : IMainThreadCommand
Constructors
MainThreadCommand()
Declaration
public MainThreadCommand()
MainThreadCommand(Action)
Declaration
public MainThreadCommand(Action action)
Parameters
Type | Name | Description |
---|---|---|
System.Action | action |
Properties
Done
Declaration
public bool Done { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Execute()
Declaration
public void Execute()
SetAction(Action)
Declaration
public void SetAction(Action setAction)
Parameters
Type | Name | Description |
---|---|---|
System.Action | setAction |
WaitForCompletion()
Makes the calling thread wait for the completion of this command.
Declaration
public void WaitForCompletion()
Exceptions
Type | Condition |
---|---|
System.Exception | If an exception occurred while executing the command, it will be rethrown here to the calling thread. |