Class MainThreadCoroutineCommand
Inheritance
System.Object
MainThreadCoroutineCommand
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 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 |
---|---|
System.Boolean |
Methods
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. |