Skip to main content

Function: calculateBackoffDelayMs()

calculateBackoffDelayMs(options: BackoffDelayOptions): number

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

Computes a retry delay in milliseconds.

Parametersโ€‹

optionsโ€‹

BackoffDelayOptions

Returnsโ€‹

number

Remarksโ€‹

  • Negative / non-finite inputs are treated as 0 so retry helpers never schedule negative timeouts or throw while handling an already-failing operation.