Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/support/retry"

Index

Functions

Object literals

Functions

logRetry

  • logRetry<T>(f: function, desc: string, options?: Options): Promise<T>
  • Add logging to promise-based retry.

    Type parameters

    • T

    Parameters

    • f: function
        • (): Promise<T>
        • Returns Promise<T>

    • desc: string
    • Default value options: Options = DefaultLogRetryOptions

    Returns Promise<T>

Object literals

Const DefaultLogRetryOptions

DefaultLogRetryOptions: object

factor

factor: number = 2

maxTimeout

maxTimeout: number = 3 * 1000

minTimeout

minTimeout: number = 0.1 * 1000

randomize

randomize: true = true

retries

retries: number = 5

Generated using TypeDoc