SuspensionResult is the return type of coroutine calls.

Static variables

@:value(new SuspensionResult(Pending))staticfinalread onlysuspended:SuspensionResult<Any> = new SuspensionResult(Pending)

Constructor

new(state:SuspensionState)

Creates a new instance with the given state.

Variables

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.

Methods