Creating a co_await awaitable signal that can be awaited multiple times, part 1--Raymond Chen

Harnessing the power of coroutines.

Creating a co_await awaitable signal that can be awaited multiple times, part 1

by Raymond Chen

From the article:

C++/WinRT asynchronous activities can be awaited only once. This is consistent with their intended usage pattern, which is for an application to start the activity, co_await the result, and then continue.

But maybe you want something like a Win32 event, where any number of people can co_await the event, and then once it is signaled, all the awaiters are resumed...

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.