Created
March 3, 2019 13:21
-
-
Save sanjeevsiva17/724b9244bc34eedef466036b18abde8a to your computer and use it in GitHub Desktop.
This file contains 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
async.waterfall([ | |
function(callback) { | |
callback(null, 'one', 'two'); | |
}, | |
function(arg1, arg2, callback) { | |
// arg1 now equals 'one' and arg2 now equals 'two' | |
callback(null, 'three'); | |
}, | |
function(arg1, callback) { | |
// arg1 now equals 'three' | |
callback(null, 'done'); | |
} | |
], function (err, result) { | |
// result now equals 'done' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment