pinterval
    Preparing search index...

    Function retry

    • Repeatedly executes an operation while it throws or rejects.

      attempts is the maximum total execution count. Any normal return value is successful, and exhaustion rejects with the final operation error unchanged. For failures eligible for another attempt, onRetry runs before the retry delay; return false to reject with that operation error, or return true or void to continue.

      Type Parameters

      • T

      Parameters

      Returns Promise<T>

    • Repeatedly executes an operation while it throws or rejects.

      attempts is the maximum total execution count. Any normal return value is successful, and exhaustion rejects with the final operation error unchanged. For failures eligible for another attempt, onRetry runs before the retry delay; return false to reject with that operation error, or return true or void to continue.

      Type Parameters

      • T

      Parameters

      Returns Promise<T>