enum class concurrent::FutureState
sys::Obj sys::Enum concurrent::FutureState
@Js@Serializable { simple=true }
State of a Future's asynchronous computation
- cancelled
-
const static FutureState cancelled := ... - err
-
const static FutureState err := ... - fromStr
-
static new fromStr(Str name, Bool checked := true)Return the FutureState instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.
- isComplete
-
Bool isComplete()Return if in any completed state: ok, err, or cancelled
- isPending
-
Bool isPending()Return if pending state
- ok
-
const static FutureState ok := ... - pending
-
const static FutureState pending := ... - vals
-
const static FutureState[] vals := ...List of FutureState values indexed by ordinal