backoffMsFor method

int backoffMsFor(
  1. int attempt
)

The backoff wait (virtual ms) after the attemptth failure (1-based).

Implementation

int backoffMsFor(int attempt) {
  final factor = backoffFactor <= 0 ? 1.0 : backoffFactor;
  return backoffBaseMs * powInt(factor, attempt - 1);
}