cmd-sync-servers - v1.0.0
    Preparing search index...

    Function withRetry

    • Experimental

      Runs operation, and runs it again after each transient failure, waiting the given delays in between. Permanent failures are thrown at once. operation receives the attempt number, starting at 0.

      Type Parameters

      • T

      Parameters

      • operation: (attempt: number) => Promise<T>
      • options: RetryOptions = {}

      Returns Promise<T>