observation-js Documentation - v1.14.0
    Preparing search index...

    Function withRateLimitRetry

    • Utility function to handle rate limiting with automatic retry

      Type Parameters

      • T

      Parameters

      • operation: () => Promise<T>

        The operation to retry

      • maxRetries: number = 3

        Maximum number of retries (default: 3)

      Returns Promise<T>

      Promise that resolves with the operation result