Skip to main content

C++ coroutines: Basic implementation of a promise type

Last time, we diagrammed out how the pieces of a coroutine fit together. Today we’ll fill in the diagram with code.
Fortunately, most of the hard work has already been done for us by the result_holder class we already wrote. We just need to adapt it to the format required by the coroutine specification.

The post C++ coroutines: Basic implementation of a promise type appeared first on The Old New Thing.

2021-03-30 14:00:00Z 0001-01-01 00:00:00Z https://devblogs.microsoft.com/oldnewthing/20210330-00/?p=105019

Comments

Popular posts from this blog