Skip to content

Instantly share code, notes, and snippets.

@thejh
Forked from anonymous/gist:1461559
Created December 11, 2011 17:05
Show Gist options
  • Save thejh/1461580 to your computer and use it in GitHub Desktop.
Save thejh/1461580 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