Class MainThreadCommand
Contains an action to execute on the main thread and its current status.
Inherited Members
Namespace: InsaneScatterbrain.Threading
Syntax
public class MainThreadCommand
Constructors
MainThreadCommand(Action)
Declaration
public MainThreadCommand(Action action)
Parameters
| Type | Name | Description |
|---|---|---|
| Action | action |
Methods
Cancel()
Stops executing the command as soon as possible. Called from the main thread.
Declaration
public void Cancel()
Execute()
Executes the command. Called from the main thread.
Declaration
public void Execute()
ExecuteNoCheck()
Simply executes the action, checking or setting the reset event required for waiting for completion.
Declaration
public void ExecuteNoCheck()
Reset()
Declaration
public void Reset()
WaitForCompletion()
Makes the calling thread wait for the completion of this command.
Declaration
public void WaitForCompletion()