Skip to content

JavaScript Meetup - From Callbacks to Promises to Async to ...?

Photo of Patrick McDavid
Hosted By
Patrick M. and Benjamin Y.
JavaScript Meetup - From Callbacks to Promises to Async to ...?

Details

The first part of this talk will cover the history of asynchrony in JavaScript from the event dispatcher at the heart of it all and the bad old days in Callback Hell to generators and async functions. In particular, we’ll take a careful look at how exceptional control flow and local state are handled differently in each of the asynchrony patterns.

In the second part, we’ll look at an issue that has increased in importance as asynchrony has gotten easier: atomicity. Using async/await syntax it is easy to write asynchronous code that looks like conventional sequential code. But as more and more libraries transition to asynchronous interfaces, the potential for atomicity violations (and other concurrency bugs) increases.

Photo of JavaScript Meetup (coloradoSprings.js) group
JavaScript Meetup (coloradoSprings.js)
See more events
Epicentral
415 North Tejon Street · Colorado Springs, CO