TS-Scribe - v0.6.2
    Preparing search index...

    Function retry

    • Retry handler while it throws. Retries are based on the provided options which can define how many retries, delays between retries, and whether retries should continue based on the error.

      Type Parameters

      • TypedValue

      Parameters

      • handler: RetryHandler<TypedValue>

        The function to retry. It should return a value or a promise that resolves to a value.

      • options: RetryOptions = {}

        The configuration options for retrying.

      Returns Promise<TypedValue>

      The result of the handler after it successfully completes.

      Throws the last error encountered if retries are exhausted or if aborted.