📜  async queue.push - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:17.189000             🧑  作者: Mango

代码示例1
var q = async.queue(function (userService, callback) {
  console.log('Here you do your stuff with the userService object');
  console.log('Calling the callback function');
  callback(null, userService);
}, 1);

q.push(userService, function (err, userService) {
  console.log('finished processing ' + userService.name);
});