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
RETIRED(false, true, { setOf() })

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

Link copied to clipboard
ABORTED(false, true, { setOf(RETIRED) })

The fiber has aborted (due to an exception).

Link copied to clipboard
TERMINATED(false, true, { setOf(ABORTED, RETIRED) })

The fiber has terminated successfully.

Link copied to clipboard
UNPAUSING(true, false, { setOf(RUNNING) })

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
PAUSED(true, false, { setOf(UNPAUSING) })

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

Link copied to clipboard
ASLEEP(true, false, { setOf(SUSPENDED) })

The fiber is asleep.

Link copied to clipboard
PARKED(true, false, { setOf(SUSPENDED) })

The fiber has been parked.

Link copied to clipboard
INTERRUPTED(true, false, { setOf(RUNNING) })

The fiber has been interrupted.

Link copied to clipboard
SUSPENDED(true, false, { setOf(RUNNING, ABORTED, ASLEEP) })

The fiber has been suspended.

Link copied to clipboard
RUNNING(false, false, { setOf( SUSPENDED, INTERRUPTED, PARKED, PAUSED, TERMINATED, ABORTED) })

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

Link copied to clipboard
UNSTARTED(true, false, { setOf(RUNNING) })

The fiber has not been started.

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