FutureStatus
@Js
@Serializable { simple=true }
const class FutureStatus : Enum
State of a Future's asynchronous computation
Return the FutureStatus instance for the specified name
List of FutureStatus values indexed by ordinal
Return if the cancelled state
Return if the err state
Return if the ok state
Return if pending state
Return if in any completed state
const static FutureStatus : cancelled
const static FutureStatus : err
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.
Bool isCancelled()
Return if the cancelled state
Bool isComplete()
Return if in any completed state: ok, err, or cancelled
Bool isErr()
Return if the err state
Bool isOk()
Return if the ok state
Bool isPending()
Return if pending state
const static FutureStatus : ok
const static FutureStatus : pending
const static FutureStatus[] : vals
List of FutureStatus values indexed by ordinal