Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

implmented: async waterfall example

  • Loading branch information...
commit e73f46d965753ea57aa7b1bdd6c4ad04fd658c38 1 parent b0ee643
@bu authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 async.waterfall.js
View
10 async.waterfall.js
@@ -1,7 +1,15 @@
var async = require("async");
async.waterfall([
-
+ function buySomething(callback) {
+ return callback();
+ },
+
+ function payTheBill(callback) {
+ return callback(true);
+ }
], function (err, result) {
+ console.log(err, result);
+
// result now equals 'done'
});
Please sign in to comment.
Something went wrong with that request. Please try again.