Skip to content

Commit

Permalink
Update p-map (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs authored Apr 24, 2020
1 parent 7814760 commit d3fcaf0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"bluebird"
],
"dependencies": {
"p-map": "^2.0.0"
"p-map": "^4.0.0"
},
"devDependencies": {
"ava": "^1.4.1",
Expand Down
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ Minimum: `1`

Number of concurrently pending promises returned by `mapper`.

##### stopOnError

Type: `boolean`\
Default: `true`

When set to `false`, instead of stopping when a promise rejects, it will wait for all the promises to settle and then reject with an [aggregated error](https://github.com/sindresorhus/aggregate-error) containing all the errors from the rejected promises.

## Related

Expand Down

0 comments on commit d3fcaf0

Please sign in to comment.