Created
December 11, 2011 17:01
-
-
Save anonymous/1461559 to your computer and use it in GitHub Desktop.
Yep oh wow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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