Last active
May 31, 2017 23:29
-
-
Save veyselsahin/d5a1b7a7d4bead7d1da8d78e1177e812 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, 'bir', 'iki'); | |
}, | |
function(arg1, arg2, callback) { | |
// arg1 suan 'bir' ve arg2 suan 'iki' | |
callback(null, 'uc'); | |
}, | |
function(arg1, callback) { | |
// arg1 suan 'uc' | |
callback(null, 'done'); | |
} | |
], function (err, result) { | |
// ve sonuc 'done' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gist describes how to use async waterfall function of async library.