couch-kit
    Preparing search index...

    Function computeBackoffDelay

    • Compute the exponential-backoff delay (ms) for a reconnection attempt.

      delay = min(baseDelay * 2^attempt, maxDelay), where attempt is the zero-based count of reconnects already made.

      Parameters

      • attempt: number
      • baseDelay: number
      • maxDelay: number

      Returns number