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.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
abortController? | AbortController | Not set by the library; the executor keeps controllers outside state. | types.ts:130 |
data? | any | The handler’s resolved value. | types.ts:120 |
endTime? | number | Date.now() when it settled. | types.ts:126 |
error? | string | The rejection’s message. | types.ts:122 |
id | string | The operation id given to action/async. | types.ts:116 |
startTime? | number | Date.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? | AsyncConcurrencyStrategy | The strategy the call ran with. | types.ts:128 |