enum class concurrent::FutureState

sys::Obj
  sys::Enum
    concurrent::FutureState

@Deprecated { msg="Use FutureStatus" }
@Js
@Serializable { simple=true }

Source

State of a Future's asynchronous computation

cancelled

const static FutureState cancelled := ...

Source

err

const static FutureState err := ...

Source

fromStr

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

Source

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

isCancelled

Bool isCancelled()

Source

Return if the cancelled state

isComplete

Bool isComplete()

Source

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

isErr

Bool isErr()

Source

Return if the err state

isOk

Bool isOk()

Source

Return if the ok state

isPending

Bool isPending()

Source

Return if pending state

ok

const static FutureState ok := ...

Source

pending

const static FutureState pending := ...

Source

vals

const static FutureState[] vals := ...

Source

List of FutureState values indexed by ordinal