C++ coroutines: Allowing the awaiter to be destroyed while suspended

1 · Raymond Chen · April 19, 2021, 2:21 p.m.
One issue that we dealt with when we created our co_await awaitable signal was the case of the awaiter being destroyed while suspended. We had been ignoring that problem in our coroutine promise, but we can’t keep our head in the sand forever. The post C++ coroutines: Allowing the awaiter to be destroyed while suspended appeared first on The Old New Thing....