Type Alias BackoffPolicy

BackoffPolicy: ((attempt: number, error: unknown) => number)

Type declaration

    • (attempt, error): number
    • Parameters

      • attempt: number
      • error: unknown

      Returns number

      Amount milliseconds to wait