There’s one last section of the outline of compiler code generation for co_await that is marked “We’re not ready to talk about this step yet.” Let’s talk about that step. Before suspending the coroutine, the compiler asks the awaiter’s await_ready method. The post C++ coroutines: Short-circuiting suspension, part 2 appeared first on The Old New Thing....