ExecutionState

enum ExecutionState : Enum<FiberDescriptor.ExecutionState>

These are the possible execution states of a fiber.

Parameters

indicatesSuspension

Whether this state indicates a suspended fiber.

indicatesTermination

Whether this state indicates a terminated fiber.

Entries

Link copied to clipboard

The fiber has not been started.

Link copied to clipboard

The fiber is running or waiting for another fiber to yield.

Link copied to clipboard

The fiber has been suspended.

Link copied to clipboard

The fiber has been interrupted.

Link copied to clipboard

The fiber has been parked.

Link copied to clipboard

The fiber is asleep.

Link copied to clipboard

The fiber was RUNNING, but was paused by an AvailDebuggerModel.

Link copied to clipboard

The fiber was PAUSED, but the attached AvailDebuggerModel is attempting (while holding the fiber's lock) to queue an AvailTask which will make it execute.

Link copied to clipboard

The fiber has terminated successfully.

Link copied to clipboard

The fiber has aborted (due to an exception).

Link copied to clipboard

The fiber has run either its result continuation or its failure continuation. This state is permanent.

Functions

Link copied to clipboard
fun mayTransitionTo(newState: FiberDescriptor.ExecutionState): Boolean

Determine if this is a valid successor state.

Properties

Link copied to clipboard
val indicatesSuspension: Boolean
Link copied to clipboard
val indicatesTermination: Boolean
Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int