Interface: BackoffDelayOptions
Defined in: shared/utils/backoff.ts:36
Parameters for calculateBackoffDelayMs.
Propertiesโ
attemptIndexโ
readonly attemptIndex: number;
Defined in: shared/utils/backoff.ts:45
0-based retry index.
Remarksโ
This is intentionally not the same as an "attempt number" that starts
at 1. If you have an attempt number (1-based), convert via attemptIndex = attemptNumber - 1.
initialDelayMsโ
readonly initialDelayMs: number;
Defined in: shared/utils/backoff.ts:48
Base delay (ms) for the first retry attempt.
multiplier?โ
readonly optional multiplier?: number;
Defined in: shared/utils/backoff.ts:55
Exponential multiplier.
Default Valueโ
2;
strategyโ
readonly strategy: BackoffStrategy;
Defined in: shared/utils/backoff.ts:58
Backoff strategy.