C++ coroutines: Adding COM context support to our awaiter

4 · Raymond Chen · April 29, 2021, 3:26 p.m.
You may want to have awaiters that apply custom resume behavior. For example, in Windows, you are likely to want your awaiter to preserve the COM thread context. For X11 programming, you may want to the awaiter to return to the render thread if the co_await was initiated from the render thread. The post C++ coroutines: Adding COM context support to our awaiter appeared first on The Old New Thing....