Skip to main content

TaskYield<T>

A class in Alta.Coroutines, the global namespace.

Lets a Unity coroutine wait for a Task<T> and then read its result.

Constructors​

MemberWhat it is
TaskYield(Task<T> 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.
T Result { get; }The task's result; read it after the yield returns.
Task<T> Task { get; set; }The task being waited on.