BackoffStrategy
Defined in: src/retry/backoff-strategy.ts:28
Computes the delay before the next retry attempt.
Methods
Section titled “Methods”nextDelay()
Section titled “nextDelay()”nextDelay(ctx): number;Defined in: src/retry/backoff-strategy.ts:35
Returns the delay in milliseconds before the next attempt.
Must be a non-negative finite number. Implementations should treat
ctx.attempt < 1 as a programmer error.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
ctx | BackoffContext |
Returns
Section titled “Returns”number