Skip to content

Instantly share code, notes, and snippets.

@almost
Last active September 12, 2019 09:07
Show Gist options
  • Save almost/93f5bd3b7041aed591ba to your computer and use it in GitHub Desktop.
Save almost/93f5bd3b7041aed591ba to your computer and use it in GitHub Desktop.
Reactive 2015 Lightning Talk Proposal: Pyramids be gone!: ES7 Async Function

This is a proposal for a lightning talk at the Reactive 2015 conference.

NOTE: If you like this, star ⭐ the Gist - the amount of stars decides whether it makes the cut! You could also Retweet if you want :)

Pyramids be gone!

ES7 Async Functions

JavaScript is getting async functions (or already has them if you count Babel.JS) and with them a way to finally slay the evil pyramid. This new language feature lets you write asynchronous code that almost looks synchronous, while maintaining the same semantics as promises. This lets you shed your .then and .catch boilerplate and escape those nested callbacks in favour of clean, explicit, maintainable code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment