Function forEachAsyncParallel

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

    Type Parameters

    • T

    Parameters

    • iterable: Iterable<T>

      An Iterable to execute the callback on

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

      The callback to execute for each item

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

          • item: T
          • index: number

          Returns PromiseLike<any>

    • parallelism: number = 2

    Returns Promise<T[]>