Class: Parallel

rg-async. Parallel

Defines a Parallel class. Provides a parallel method that will run in parallel).


new Parallel()

Author:
Source:

Methods


<static> parallel(srcArray)

Invokes in parallel each item in the given source Array.

Invokes in parallel each item in the given source Array.

Parameters:
Name Type Description
srcArray Array

Specifies the source array with promises to run in parallel.

Source:
Returns:

Returns a promise to be resolved containing the same structure as the source array but with the resolved values.

Type
Promise