Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

async queue.push

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);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #async
ADD COMMENT
Topic
Name
8+7 =