C++ coroutines: Awaiting an IAsyncAction without preserving thread context

1 · Raymond Chen · Dec. 12, 2019, 3:16 p.m.
Summary
The C++/WinRT library provides an awaiter for Windows Runtime asynchronous activities. Those asynchronous activities are represented by IAsync­Action, IAsync­Operation, and progress versions of the above. The C++/WinRT-provided awaiter resumes execution of the caller in the same COM apartment that awaited the activity. The post C++ coroutines: Awaiting an <CODE>IAsyncAction</CODE> without preserving thread context appeared first on The Old New Thing....