Table of Contents

Class TaskYieldInstruction<T>

Namespace
LiveKit

Adapts a Task<TResult> to a coroutine-friendly YieldInstruction. Yield on it from a coroutine, then read Result on success or Exception when IsError is true.

public sealed class TaskYieldInstruction<T> : YieldInstruction

Type Parameters

T
Inheritance
TaskYieldInstruction<T>
Inherited Members
Extension Methods

Properties

Exception

public Exception Exception { get; }

Property Value

Exception

Result

public T Result { get; }

Property Value

T