• Executes pTask parallel for all elements of pArray. Order of execution is random. Execution is aborted in case of error. The maximum number of concurrent tasks can be defined with the pMaxConcurrentTasks parameter. If it is 0 or undefined, the maximum number of concurrent tasks will be unlimited (default: undefined).

    Type Parameters

    • T

    • PT

    Parameters

    • pArray: T[]
    • pTask: ((pIndex: number, pElement: T) => Promise<PT>)
        • (pIndex: number, pElement: T): Promise<PT>
        • Parameters

          • pIndex: number
          • pElement: T

          Returns Promise<PT>

    • Optional pMaxConcurrentTasks: number

    Returns Promise<PT[]>

Generated using TypeDoc