Created
September 6, 2011 18:33
-
-
Save Raynos/1198539 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var middleware = function() { ... } | |
var stack = middleware(function(data1, data2, next) { | |
}, function(data1, data2, next) { | |
}, function(data1, data2, next) { | |
}); | |
stack.handle(data1,data2); | |
// Use middleware as a flow control alternative to Step and async and others | |
Step( | |
function () { | |
// uses `this` instead of `next` | |
}, | |
function () { | |
}, | |
function () { | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment