Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: run all function for "each" even theres an error #1046

Closed
benhk2005 opened this issue Mar 5, 2016 · 1 comment
Closed

Comments

@benhk2005
Copy link

I would like to have an "each" function will loop through the the array passed in the "each" and run though all of them even though there are error in one/more of the functions array. Thanks 馃槃

@aearly
Copy link
Collaborator

aearly commented Mar 6, 2016

We're going to add something similar to this in #1012 . You'll be able to do something like:

async.map(arr, async.reflect(iteratee), function (err, results) {
  // results[0].value is the results
  // results[1].error is the error, if it occurred
});

@aearly aearly closed this as completed Mar 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants