Skip to content

BackoffStrategy

Defined in: src/retry/backoff-strategy.ts:28

Computes the delay before the next retry attempt.

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.

ParameterType
ctxBackoffContext

number