Interface IMainThreadCommand
Interface for commands to execute on the main thread.
Namespace: InsaneScatterbrain.Threading
Syntax
public interface IMainThreadCommand
Properties
Done
Returns whether the command is done executing or not.
Declaration
bool Done { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
Cancel()
Stops executing the command as soon as possible.
Declaration
void Cancel()
Execute()
Executes the command.
Declaration
void Execute()
WaitForCompletion()
Makes the calling thread wait for completion before moving on.
Declaration
void WaitForCompletion()