async icon indicating copy to clipboard operation
async copied to clipboard

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

Open benhk2005 opened this issue 10 years ago • 1 comments

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 :smile:

benhk2005 avatar Mar 05 '16 14:03 benhk2005

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 avatar Mar 06 '16 22:03 aearly