p-each-series
Last updated
Was this helpful?
Last updated
Was this helpful?
Iterate over promises serially
Useful as a side-effect iterator. Prefer if you don't need side-effects, as it's concurrent.
Returns a Promise
that is fulfilled when all promises in input
and ones returned from iterator
are fulfilled, or rejects if any of the promises reject. The fulfillment value is the original input
.
Type: Iterable<Promise|any>
Iterated over serially in the iterator
function.
Type: Function
Return value is ignored unless it's Promise
, then it's awaited before continuing with the next iteration.
- Map over promises serially
- Compose promise-returning & async functions into a reusable pipeline
- Reduce a list of values using promises into a promise for a value
- Map over promises concurrently
MIT ©