async eachSeries如何按序列執行下去

碼不能停發表於2017-04-22

async callback要執行完才會進到一下個序列

async.mapSeries(files, function(file, outerCB) {
  var all = fs.readdirsync("./0");
  async.mapSeries(all, function(item, cb){
      check(item, cb);
  }, outerCB);
}, function(err, results) {
  // This is called when everything's done
});

async.eachSeries in node.js

相關文章