@playlive/tiltify-core
    Preparing search index...

    Function computeBackoffMs

    • Exponential backoff with jitter for the no-Retry-After fallback path.

      sleep = min(maxMs, baseMs * 2^attempt + random() * jitterMs)

      Attempt numbers are zero-based: attempt=0 is the first retry (i.e. the sleep between request 1 and request 2). Negative attempt numbers are clamped to 0.

      Parameters

      Returns number