1var q = async.queue(function (userService, callback) {
2 console.log('Here you do your stuff with the userService object');
3 console.log('Calling the callback function');
4 callback(null, userService);
5}, 1);
6
7q.push(userService, function (err, userService) {
8 console.log('finished processing ' + userService.name);
9});