Skip to content

Instantly share code, notes, and snippets.

@veyselsahin
Last active May 31, 2017 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veyselsahin/d5a1b7a7d4bead7d1da8d78e1177e812 to your computer and use it in GitHub Desktop.
Save veyselsahin/d5a1b7a7d4bead7d1da8d78e1177e812 to your computer and use it in GitHub Desktop.
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'
});
@veyselsahin
Copy link
Author

This gist describes how to use async waterfall function of async library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment