Defined in: async-retryer.ts:6
• TFn extends AnyAsyncFunction
currentAttempt: number;
currentAttempt: number;
Defined in: async-retryer.ts:10
The current retry attempt number (0 when not executing)
executionCount: number;
executionCount: number;
Defined in: async-retryer.ts:14
Total number of completed executions (successful or failed)
isExecuting: boolean;
isExecuting: boolean;
Defined in: async-retryer.ts:18
Whether the retryer is currently executing the function
lastError: undefined | Error;
lastError: undefined | Error;
Defined in: async-retryer.ts:22
The most recent error encountered during execution
lastExecutionTime: number;
lastExecutionTime: number;
Defined in: async-retryer.ts:26
Timestamp of the last execution completion in milliseconds
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: "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: number;
totalExecutionTime: number;
Defined in: async-retryer.ts:38
Total time spent executing (including retries) in milliseconds