This class serves as the base class for all continuation classes generated by the compiler. It provides the basic functionality for managing the internal coroutine state, most of which should be uninteresting to the casual coroutine user.

Variables

finalcompletion:IContinuation<Any>

The continuation to resume once this continuation completes.

read onlycontext:Context

The immutable context of this continuation.

gotoLabel:Int

The current label of the internal state machine.

recursing:Bool

A flag used by the compiler to detect when this continuation recurses on itself.

Methods

Inherited Variables

Defined by SuspensionResult

error:Exception

The error value of the coroutine, is any.

result:T

The result value of the coroutine, if any.

state:SuspensionState

The current state of the suspension.

Inherited Methods

Defined by SuspensionResult