Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • delay(ms: number): Promise<any>
  • Parameters

    • ms: number

    Returns Promise<any>

  • isThrottlingError(e: any): boolean
  • Parameters

    • e: any

    Returns boolean

  • throttlingBackOff<T>(request: () => Promise<T>, options?: Partial<Omit<IBackOffOptions, "retry">>): Promise<T>
  • Auxiliary function to retry AWS SDK calls when a throttling error occurs.

    Type parameters

    • T

    Parameters

    • request: () => Promise<T>
        • (): Promise<T>
        • Returns Promise<T>

    • Optional options: Partial<Omit<IBackOffOptions, "retry">>

    Returns Promise<T>

Generated using TypeDoc