OptionalbaseBase delay in ms for the first backoff step. Default: 1000.
OptionalisError classifier. Default: isRetryableRpcError.
OptionaljitterApply full jitter to each delay. Default: true.
OptionalmaxUpper bound for any single backoff delay. Default: 30000.
OptionalmaxMax retries after the initial attempt. Default: 3.
OptionalonRetry logger. Default: no-op.
OptionalsignalCancels an in-flight retry loop.
The signal is checked before each attempt and interrupts the backoff delay
itself, so an abort takes effect immediately rather than after the current
sleep (which can be up to maxDelayMs) elapses. When it fires,
withRetry rejects with the signal's reason.
Optional InternalsleepClock seam used to wait between attempts. Injectable for tests.
Default: a setTimeout-based sleep. Receives RetryOptions.signal
when one is set; implementations may ignore it, since withRetry also
races the sleep against the signal.
Options for the low-level withRetry wrapper.