Framework
Version
Debouncer API Reference
Throttler API Reference
Rate Limiter API Reference
Queue API Reference
Batcher API Reference

AsyncRetryerState

Interface: AsyncRetryerState<TFn>

Defined in: async-retryer.ts:6

Type Parameters

TFn extends AnyAsyncFunction

Properties

currentAttempt

ts
currentAttempt: number;
currentAttempt: number;

Defined in: async-retryer.ts:10

The current retry attempt number (0 when not executing)


executionCount

ts
executionCount: number;
executionCount: number;

Defined in: async-retryer.ts:14

Total number of completed executions (successful or failed)


isExecuting

ts
isExecuting: boolean;
isExecuting: boolean;

Defined in: async-retryer.ts:18

Whether the retryer is currently executing the function


lastError

ts
lastError: undefined | Error;
lastError: undefined | Error;

Defined in: async-retryer.ts:22

The most recent error encountered during execution


lastExecutionTime

ts
lastExecutionTime: number;
lastExecutionTime: number;

Defined in: async-retryer.ts:26

Timestamp of the last execution completion in milliseconds


lastResult

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

Defined in: async-retryer.ts:30

The result from the most recent successful execution


status

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

Defined in: async-retryer.ts:34

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


totalExecutionTime

ts
totalExecutionTime: number;
totalExecutionTime: number;

Defined in: async-retryer.ts:38

Total time spent executing (including retries) in milliseconds