@qualithm/arrow-flight-sql-js - v0.4.3
    Preparing search index...

    Class RetryPolicy

    A retry policy that can be reused across multiple operations. Useful for applying consistent retry behavior.

    Index

    Constructors

    Methods

    • Execute an operation with this policy's retry configuration

      Type Parameters

      • T

      Parameters

      • operation: () => Promise<T>

      Returns Promise<RetryResult<T>>

    • Get the delay that would be used for a specific attempt

      Parameters

      • attempt: number

      Returns number

    • Check if an error would be retried by this policy

      Parameters

      • error: unknown

      Returns boolean

    • Create a wrapped version of an async function that automatically retries

      Type Parameters

      • T
      • TArgs extends unknown[]

      Parameters

      • fn: (...args: TArgs) => Promise<T>

      Returns (...args: TArgs) => Promise<T>