Skip to content

Instantly share code, notes, and snippets.

Created December 11, 2011 17:01
Show Gist options
  • Save anonymous/1461559 to your computer and use it in GitHub Desktop.
Save anonymous/1461559 to your computer and use it in GitHub Desktop.
Yep oh wow
var request = require('request'),
async = require('async');
async.series([
function(c) {
request('someuri', function(err, response, body) {
console.log('Request Callback Executed');
});
c();
},
function(c) {
console.log('Last callback/function executed.');
c();
}
]);
OUTPUT:
Last callback/function executed.
Request Callback Executed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment