xaa
    Preparing search index...

    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

      • OptionalrejectMsg: string

        message to reject with if operation timed out

      • Optionaloptions: TimeoutRunnerOptions

      Returns Promise<T>

      promise results from all tasks

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

      Type Parameters

      • T extends readonly any[]

      Parameters

      • tasks: Tasks<T>

        Promise or function or array of them

      • maxMs: number

        milliseconds to wait for the tasks to fulfill

      • OptionalrejectMsg: string

        message to reject with if operation timed out

      • Optionaloptions: TimeoutRunnerOptions

      Returns Promise<T[]>

      promise results from all tasks