Skip to content

Instantly share code, notes, and snippets.

@nthx
Created January 26, 2012 02:47
Show Gist options
  • Select an option

  • Save nthx/1680647 to your computer and use it in GitHub Desktop.

Select an option

Save nthx/1680647 to your computer and use it in GitHub Desktop.
async.waterfall([
function(callback){
callback(null, 'one', 'two');
},
function(arg1, arg2, callback){
callback(null, 'three');
},
function(arg1, callback){
// arg1 now equals 'three'
callback(null, 'done');
}
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment