What gets printed in the console, and in what order? Asynchronous JavaScript makes that harder to answer than it looks. This talk explains how the code we write now gets to run later, starting with the event loop.
We’ll then walk through the APIs for handling asynchrony, from callbacks and promises (explained with an order at a burger joint) to async/await and generators, weighing what each makes easier and where it falls short. To close, a look at Communicating Sequential Processes, the model behind Go routines, and what it offers for coordinating concurrent work.