Async/await from first principles Duration 45m

Javascript is full of new, cutting-edge syntax. One of the things that can be tricky, when approaching it from other languages, is understanding how async and await work.

Would it surprise you to know that the language you’re using probably supports the same kind of syntax?

I would like to show you how any language that has generators can be made to use async/await syntax. In this talk, we’ll look at what it takes to make an event loop, and how we can use generators inside of it to simulate async/await in almost any language.

About this talk

This is an adaptation from my Cooperative Multitasking with Generators topic, that seeks to demonstrate how it can be achieved in multiple languages. The primary language is Javascript, but I will show the same code in multiple languages to prove how portable the concepts are.

This is a great talk to attend if the attendee wants a better understand of how async/await works; and also of how it is implemented at an interpreter level.

This talk at your event?

Contact the speaker