Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Elegant Async Code with ES2015 Promises

David Goss
February 23, 2016

Elegant Async Code with ES2015 Promises

Promises are by no means new to JavaScript, but their standardisation as part of ES2015 has changed them from a handy library feature to a core tool with which we can write elegant code for async functionality.

David Goss

February 23, 2016
Tweet

More Decks by David Goss

Other Decks in Programming

Transcript

  1. Callbacks violate the single responsibility principle and Callbacks kind of

    ruin the function signature but Promises only work for one-time success/failure use cases