Class MainThreadCoroutineCommand
Inheritance
object
MainThreadCoroutineCommand
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 MainThreadCoroutineCommand : IMainThreadCoroutineCommand, IMainThreadCommand
Constructors
MainThreadCoroutineCommand(IEnumerator)
Declaration
public MainThreadCoroutineCommand(IEnumerator action)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerator | action |
Properties
Done
Declaration
public bool Done { get; }
Property Value
Type | Description |
---|---|
bool |
IsCancelled
Declaration
public bool IsCancelled { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
Cancel()
Stops executing the command as soon as possible.
Declaration
public void Cancel()
Execute()
Declaration
public void Execute()
ExecuteCoroutine()
Declaration
public IEnumerator ExecuteCoroutine()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
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. |