Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bolasblack/underscore-waterfall

_.waterfall
https://github.com/bolasblack/underscore-waterfall

Last synced: 11 days ago
JSON representation

_.waterfall

Awesome Lists containing this project

README

        

# underscore.waterfall

```javascript
_.waterfall(function(arg1, callback) {
callback("some args")
}).then( /* other function */
).done( /* call after "then" function finish */
).fail( /* call when any "then" function error */
).anyway( /* call another done or fail */
)("first function args")
```

```javascript
_.deferred(function(arg1, callback) {
callback("some args")
}).then( /* other function */
).fail( /* call when any "then" function error */
).anyway( /* call another done or fail */)
```

Read [unit test](https://github.com/bolasblack/underscore-waterfall/blob/master/test/spec/tests.coffee) for more info.