Skip to content

Instantly share code, notes, and snippets.

Created August 16, 2014 22:50
Show Gist options
  • Select an option

  • Save anonymous/e99afad2f5713e79620d to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/e99afad2f5713e79620d to your computer and use it in GitHub Desktop.
var operations = {
'users': http.get.bind(http, 'http://url-one'),
'posts': http.get.bind(http, 'http://url-two'),
};
async.series(operations, function(err, results){
if (err) {
throw err;
}
res.send(results);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment