Skip to content

BackoffOptions

Defined in: src/time.ts:91

optional base?: number

Defined in: src/time.ts:93

Delay for attempt 0, in milliseconds.


optional factor?: number

Defined in: src/time.ts:95

Growth per attempt.


optional max?: number

Defined in: src/time.ts:97

Upper bound on the delay, in milliseconds.


optional previous?: number

Defined in: src/time.ts:110

The delay actually used last time. Only decorrelated reads it.


optional strategy?: "equal" | "full" | "decorrelated" | "none"

Defined in: src/time.ts:108

How to spread retries out.

  • full picks anywhere in [0, cap) — the strongest de-synchroniser, and the default.
  • equal keeps half the delay fixed and randomises the rest.
  • decorrelated walks up from the previous delay, which recovers faster after a long outage.
  • none is plain exponential growth, for tests.