C++ coroutines: Making the promise itself be the shared state, the inspiration

1 · Raymond Chen · April 2, 2021, 3:22 p.m.
Earlier, we improved our simple coroutine promise by delaying the resumption of awaiting coroutines until local variables have destructed. This time, we’ll look at another improvement. Recall that our coroutine is structured like this:     Coroutine state       The post C++ coroutines: Making the promise itself be the shared state, the inspiration appeared first on The Old New Thing....