Options
All
  • Public
  • Public/Protected
  • All
Menu

Module util/timeout.function

Index

Interfaces

Functions

Functions

timeout

  • timeout<R>(updateIntervalMs: number, maxDurationMs: number, action: (...params: any) => Promise<R>, config?: TimoutConfig): Promise<R>
  • Type parameters

    • R

    Parameters

    • updateIntervalMs: number
    • maxDurationMs: number
    • action: (...params: any) => Promise<R>
        • (...params: any): Promise<R>
        • Parameters

          • Rest ...params: any

          Returns Promise<R>

    • Optional config: TimoutConfig

    Returns Promise<R>