📅  最后修改于: 2022-03-11 15:03:17.189000             🧑  作者: Mango
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);
});