async.each是作为异步数组迭代工作的吗?
async.eachSeries是否作为同步数组迭代工作?(它实际上等待响应)
我问这些是因为它们都有回调但async.each就像异步数组迭代一样对ex:
//This is traditional way to iterate an array with callback functions in node.js //Is this same with async.each ? i want to know it actually. for (var i = 0; i < data.length; i++) { (function (i) { request(data[i],function(body){ console.log(body) }); })(i); //if this codes and async.each are doing same things,//i know that async gives me an aert when all finished thats the difference.