-
Notifications
You must be signed in to change notification settings - Fork 394
Home
Brian Cavalier edited this page Feb 2, 2012
·
38 revisions
- AMD - Clone or submodule the repo and then use a package config to point your AMD loader at when.js.
{ name: 'when', location: 'path/to/when', main: 'when' }
Alternatively, you can simply drop the when.js
file into your AMD loader's baseDir.
-
Node -
-
script tag - when.js will create a global named
when
<script src="path/to/when.js"></script>
- Deferred
- Promise
- Resolver
- when() - can't we just use .then()?
- Proposed Promises/A spec by Kris Zyp
- Examples
-
when.reduce()
- Simple, asynchronous map-reduce- when.js + Dojo
-
when.js + jQuery, and no need for
$.pipe()
- when/apply - Promises and Arrays helper module
- when/delay - Delayed promises
- when/timeout - Promises with timeouts
- when/cancelable - Cancelable Deferred