Skip to main content

Syncing Async

Kyle Simpson (Getify)
Average rating: ****.
(4.82, 11 ratings)
Slides:   external link

I bet you’ve heard that “callback hell” is about function nesting and levels of indentation. Nope.

I bet you’ve heard that Promises take away the nightmares of callbacks. Not so much.

I bet you think the event loop is the model for concurrency in JS. Meh.

Clearly, we need some clarity on what async flow control is all about in JavaScript. We’ll explore the perils of “Inversion of Control” patterns, and see just what hell that leads us to. Then we’ll talk about promises as “continuation events” for function calls, and abstractions on top of promises that clean up our code.

Finally, we’ll reveal generators for synchronous-looking async, and even how we can create cooperative concurrency with coroutines.

Yield those confused async notions and control your flow. I promise we’ll get your thoughts in order.

Photo of Kyle Simpson

Kyle Simpson


Kyle Simpson is an Open Web Evangelist from Austin, TX. He’s passionate about JavaScript, HTML5, real-time/peer-to-peer communications, and web performance. Otherwise, he’s probably bored by it. Kyle is an author, workshop trainer, tech speaker, and avid OSS community member.

Comments on this page are now closed.


Picture of Kyle Simpson
Kyle Simpson
07/24/2014 8:33am PDT

Related blog posts about the content I share in this talk:

Picture of Caleb Madrigal
Caleb Madrigal
04/13/2014 8:26am PDT

This sounds very cool and useful. +1!