Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "node_modules/@types/retry/index.d"

Index

Functions

createTimeout

  • Create a new timeout (in milliseconds) based on the given parameters.

    Parameters

    • attempt: number

      Representing for which retry the timeout should be calculated.

    • Optional options: CreateTimeoutOptions

    Returns number

    timeout

operation

  • Create a new RetryOperation object.

    Parameters

    Returns RetryOperation

timeouts

  • Get an array with timeouts and their return values in milliseconds.

    Parameters

    Returns number[]

wrap

  • wrap(object: object, methods?: string[]): void
  • wrap(object: object, options?: OperationOptions, methods?: string[]): void
  • Wrap all functions of the object with retry.

    Parameters

    • object: object

      The object to be wrapped

    • Optional methods: string[]

      Methods which need to be wrapped

    Returns void

  • Parameters

    Returns void

Generated using TypeDoc