Skip to main content

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.

Constructors​

MemberWhat it is
TaskYield(Task task)Creates a TaskYield from task.

Properties​

MemberWhat 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.