标签: node.js loops async-await async.js
当我将async.eachLimit与async函数用作回调函数时,作为到达下一个循环的函数的完成元素将变为变量
async.eachLimit(items, 1, async (item, done) => { var response = await f(item); done; // it should be a function }, (ex) => { console.log('ex' , ex); resolve(); })