TaskYield
A class in Root.Township, the global namespace.
Lets a Unity coroutine wait for a Task: yield one and the coroutine resumes when the task finishes.
- Listed in Global namespace: T to X
- Inherits or implements
CustomYieldInstruction
Constructors
| Member | What it is |
|---|---|
TaskYield(Task task) | Creates a TaskYield from task. |
Properties
| Member | What it is |
|---|---|
override bool keepWaiting { get; } | True until the task completes. Rethrows the task's exception if it failed. |
Task Task { get; set; } | The task being waited on. |