class

FutureStatus

@Js
@Serializable { simple=true }
const class FutureStatus : Enum

State of a Future's asynchronous computation

constructors fromStr

Return the FutureStatus instance for the specified name

fields err

vals

List of FutureStatus values indexed by ordinal

pending

cancelled

ok

methods isCancelled

Return if the cancelled state

isErr

Return if the err state

isOk

Return if the ok state

isPending

Return if pending state

isComplete

Return if in any completed state

cancelled const static FutureStatus : cancelled

err const static FutureStatus : err

fromStr static new fromStr(Str name, Bool checked)

Return the FutureStatus instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.

isCancelled Bool isCancelled()

Return if the cancelled state

isComplete Bool isComplete()

Return if in any completed state: ok, err, or cancelled

isErr Bool isErr()

Return if the err state

isOk Bool isOk()

Return if the ok state

isPending Bool isPending()

Return if pending state

ok const static FutureStatus : ok

pending const static FutureStatus : pending

vals const static FutureStatus[] : vals

List of FutureStatus values indexed by ordinal

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST