You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the question! applyEach behaves the same way as map in this regard (it's actually implemented using map internally) so you can already do that. The documentation for it is just missing right now.
constfunc0=(foo,bar,cb)=>{cb(null,'foo');};constfunc1=(foo,bar,cb)=>{cb(null,'bar');};async.applyEach([func0,func1],'foo',29,(err,results)=>{if(err){// handle err}// results is ['foo', 'bar']});
If you have an idea for including this in the docs, a PR would be awesome!
I could utilize
applyEach
more often if it provided a way to collect results from each input function. Please allow me to write code link this:This is similar
map
, but inverted from SIMD to MISD.The text was updated successfully, but these errors were encountered: