Retry options

Hierarchy

  • RetryOptions

Properties

retries?: number

Maximum amount of times to retry the operation, default is 3

shouldRetry?: ((error) => boolean)

Type declaration

    • (error): boolean
    • Check an error to need retry, by default retry on every error

      Parameters

      • error: Error

      Returns boolean

signal?: AbortSignal

AbortSignal instance to abort retry via an AbortController

timeout?: number

Number of milliseconds before starting the retry, default is 500

Generated using TypeDoc