• Execute the map callback async in parallel on each of the items in the specified Iterable

    Type Parameters

    • T

    • R

    Parameters

    • iterable: Iterable<T>

      An Iterable to execute the callback on

    • callback: ((item, index) => PromiseLike<R>)

      The callback to execute for each item

        • (item, index): PromiseLike<R>
        • Parameters

          • item: T
          • index: number

          Returns PromiseLike<R>

    • parallelism: number = 2

      The number of parallel tasks to execute

    Returns Promise<R[]>

    A promise that resolves to an array of the results of the callback