Async JavaScript
The Right Way
Julián David Duque
Engineer at NodeSource
@julian_duque
Common Issues
Error handling
Unexpected results
Hard flow control
Callback Hell/Pyramid of Doom
Callback Pattern
Promises
Co-routines / Generators
async / await
Resources
Callback Hell -
http://callbackhell.com
async.js -
https://github.com/caolan/async
Bluebird -
http://bluebirdjs.com
co -
https://github.com/tj/co
Babel -
http://babeljs.io
Async JavaScript -
https://pragprog.com/book/tbajs/async-javascript
NodeSchool
$ npm install -g promise-it-wont-hurt $ npm install -g learn-generators $ npm install -g async-you
See you next month!
https://meetup.com/suncoast-js