BackoffOptions
Defined in: src/time.ts:91
Properties
Section titled “Properties”
optionalbase?:number
Defined in: src/time.ts:93
Delay for attempt 0, in milliseconds.
factor?
Section titled “factor?”
optionalfactor?:number
Defined in: src/time.ts:95
Growth per attempt.
optionalmax?:number
Defined in: src/time.ts:97
Upper bound on the delay, in milliseconds.
previous?
Section titled “previous?”
optionalprevious?:number
Defined in: src/time.ts:110
The delay actually used last time. Only decorrelated reads it.
strategy?
Section titled “strategy?”
optionalstrategy?:"equal"|"full"|"decorrelated"|"none"
Defined in: src/time.ts:108
How to spread retries out.
fullpicks anywhere in[0, cap)— the strongest de-synchroniser, and the default.equalkeeps half the delay fixed and randomises the rest.decorrelatedwalks up from the previous delay, which recovers faster after a long outage.noneis plain exponential growth, for tests.