Table of Contents

Class YieldInstruction

public class YieldInstruction : CustomYieldInstruction
Inheritance
YieldInstruction
Derived
Extension Methods

Properties

IsDone

public bool IsDone { get; protected set; }

Property Value

bool

IsError

public bool IsError { get; protected set; }

Property Value

bool

keepWaiting

public override bool keepWaiting { get; }

Property Value

bool

Methods

GetAwaiter()

Returns an awaiter so callers can await this instruction directly.

public YieldInstructionAwaiter GetAwaiter()

Returns

YieldInstructionAwaiter

Remarks

The awaiter completes when IsDone becomes true. As with the coroutine path, success vs. failure is inspected on the instruction itself (IsError and any subclass-specific result fields); GetResult does not throw.