Skip to main content

Syncing Async

Kyle Simpson (Getify Solutions)
Average rating: ****.
(4.82, 11 ratings)

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

Getify Solutions

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.

Leave a Comment or Question

Help us make this conference the best it can be for you. Have questions you'd like this speaker to address? Suggestions for issues that deserve extra attention? Feedback that you'd like to share with the speaker and other attendees?

Join the conversation here (requires login)


Picture of Kyle Simpson
07/24/2014 3:33pm PDT

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

Picture of Caleb Madrigal
Caleb Madrigal
04/13/2014 3:26pm PDT

This sounds very cool and useful. +1!