Various asynchronous techniques in javascript.
Techniques covered
- Promises
- Callbacks
- Generator functions (using co library)
- EventEmitter
Installing
Install Dependencies
$ npm install
Runing the examples
Promises
$ npm run promise
Callbacks
$ npm run callback
Generators
$ npm run generator
Generators
$ npm run event-emitter
3rd Party libraries
co
Generator based control flow goodness for nodejs and the browser, using promises, letting you write non-blocking code in a nice-ish way.