Advertisement
Guest User

Untitled

a guest
Sep 15th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var queue = require('queue-async');
  2. queue()
  3.   .defer(function() {console.log("hej 1") return 1;})
  4.   .defer(function() {console.log("hej 2"); return 2;})
  5.   .defer(function() {console.log("hej 3"); return 3;})
  6.   .await(function(error, obj) {console.log("Queue Done!")});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement