You get to write your code as if it is synchronous and then the compiler rewrites it into asynchronous callback-based code for you and turns your code into a state machine.” That’s the best way to think about the new async/await feature, he suggests.