TanStack

AsyncRetryerState

Interface: AsyncRetryerState<TFn>

Defined in: async-retryer.ts:5

Type Parameters

TFn

TFn extends AnyAsyncFunction

Properties

currentAttempt

ts
currentAttempt: number;

Defined in: async-retryer.ts:9

The current retry attempt number (0 when not executing)


executionCount

ts
executionCount: number;

Defined in: async-retryer.ts:13

Total number of completed executions (successful or failed)


isExecuting

ts
isExecuting: boolean;

Defined in: async-retryer.ts:17

Whether the retryer is currently executing the function


lastError

ts
lastError: Error | undefined;

Defined in: async-retryer.ts:21

The most recent error encountered during execution


lastExecutionTime

ts
lastExecutionTime: number;

Defined in: async-retryer.ts:25

Timestamp of the last execution completion in milliseconds


lastResult

ts
lastResult: Awaited<ReturnType<TFn>> | undefined;

Defined in: async-retryer.ts:29

The result from the most recent successful execution


status

ts
status: "disabled" | "idle" | "executing" | "retrying";

Defined in: async-retryer.ts:33

Current execution status - 'disabled' when not enabled, 'idle' when ready, 'executing' when running


totalExecutionTime

ts
totalExecutionTime: number;

Defined in: async-retryer.ts:37

Total time spent executing (including retries) in milliseconds