BackoffContext
Defined in: src/retry/backoff-strategy.ts:16
Context passed to a BackoffStrategy for each retry decision.
Treated as an open, additive-only contract: new optional fields may be added over time, but existing fields will not be removed or repurposed.
Properties
Section titled “Properties”attempt
Section titled “attempt”attempt: number;Defined in: src/retry/backoff-strategy.ts:18
1-based index of the attempt that just failed. Must be >= 1.
elapsedMs
Section titled “elapsedMs”elapsedMs: number;Defined in: src/retry/backoff-strategy.ts:20
Total milliseconds elapsed since the first attempt started.
lastDelayMs?
Section titled “lastDelayMs?”optional lastDelayMs?: number;Defined in: src/retry/backoff-strategy.ts:22
Previously computed delay, if any. Absent before the first retry.