Skip to main content

Interface: BackoffDelayOptions

Defined in: shared/utils/backoff.ts:25

Parameters for calculateBackoffDelayMs.

Propertiesโ€‹

attemptIndexโ€‹

readonly attemptIndex: number

Defined in: shared/utils/backoff.ts:34

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:37

Base delay (ms) for the first retry attempt.


multiplier?โ€‹

readonly optional multiplier: number

Defined in: shared/utils/backoff.ts:44

Exponential multiplier.

Default Valueโ€‹

2;

strategyโ€‹

readonly strategy: BackoffStrategy

Defined in: shared/utils/backoff.ts:47

Backoff strategy.