Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bolasblack/underscore-waterfall
_.waterfall
https://github.com/bolasblack/underscore-waterfall
Last synced: 11 days ago
JSON representation
_.waterfall
- Host: GitHub
- URL: https://github.com/bolasblack/underscore-waterfall
- Owner: bolasblack
- Created: 2013-01-21T16:48:55.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-06T08:37:59.000Z (almost 12 years ago)
- Last Synced: 2024-11-10T03:36:31.064Z (2 months ago)
- Language: JavaScript
- Size: 198 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.