Function runTimeout

  • Calls timeout(maxMs, rejectMsg).run(tasks)

    Type Parameters

    • T

    Parameters

    • tasks: Task<T>

      Promise or function or array of them

    • maxMs: number

      milliseconds to wait for the tasks to fulfill

    • Optional rejectMsg: string

      message to reject with if operation timed out

    • Optional options: TimeoutRunnerOptions

    Returns Promise<T>

    promise results from all tasks

  • Type Parameters

    • T extends readonly any[]

    Parameters

    • tasks: Tasks<T>
    • maxMs: number
    • Optional rejectMsg: string
    • Optional options: TimeoutRunnerOptions

    Returns Promise<T[]>