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