The Framework

Understand the relation between promise object, coroutine handle, and coroutine frame.

We'll cover the following...

The framework for implementing coroutines consists of more than 2020 functions, some of which you must implement and some of which you may overwrite. Therefore, you can tailor the coroutine to your needs.

A coroutine is associated with three parts: the promise object, the coroutine handle, and the coroutine frame. The client gets the coroutine handle to interact with the promise object, which keeps its state in the coroutine frame.

Promise object

The promise object is manipulated from inside the coroutine. It delivers its result or exception via the ...