calculateRetryDelay method

  1. @protected
Duration calculateRetryDelay(
  1. int attempt,
  2. Object currentError
)

Calculate retry delay with exponential backoff and optional jitter.

Exposed as @protected so subclasses (such as ZenInfiniteQuery) reuse identical backoff, jitter, and retryDelayFn semantics.

Implementation

@protected
Duration calculateRetryDelay(int attempt, Object currentError) =>
    _calculateRetryDelay(attempt, currentError);