type

FutureStatus

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

State of a Future's asynchronous computation

enum

constructors

fromStr

Return the FutureStatus instance for the specified name.

fields

vals

List of FutureStatus values indexed by ordinal

methods

isCancelled

Return if the cancelled state

isComplete

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

isErr

Return if the err state

isOk

Return if the ok state

isPending

Return if pending state

Slot Details

cancelled

src const static FutureStatus cancelled := ...

err

src const static FutureStatus err := ...

fromStr

src static new fromStr(Str name, Bool checked := true)

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

isCancelled

src Bool isCancelled()

Return if the cancelled state

isComplete

src Bool isComplete()

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

isErr

src Bool isErr()

Return if the err state

isOk

src Bool isOk()

Return if the ok state

isPending

src Bool isPending()

Return if pending state

ok

src const static FutureStatus ok := ...

pending

src const static FutureStatus pending := ...

vals

src const static FutureStatus[] vals := ...

List of FutureStatus values indexed by ordinal