Skip to content

AsyncOperation

Defined in: types.ts:114

Lifecycle of one async operation, stored at state._async[id]. It’s metadata, not a cache: put the data you keep in your own state through onSuccess or the handler’s returned actions.

PropertyTypeDescriptionDefined in
abortController?AbortControllerNot set by the library; the executor keeps controllers outside state.types.ts:130
data?anyThe handler’s resolved value.types.ts:120
endTime?numberDate.now() when it settled.types.ts:126
error?stringThe rejection’s message.types.ts:122
idstringThe operation id given to action/async.types.ts:116
startTime?numberDate.now() when the call started.types.ts:124
status"idle" | "loading" | "success" | "error" | "cancelled"cancelled: a newer call with the cancel strategy aborted it.types.ts:118
strategy?AsyncConcurrencyStrategyThe strategy the call ran with.types.ts:128