Overview of Coroutines
Get an overview of coroutines.
We'll cover the following...
Coroutines are functions that can suspend and resume their execution while keeping their state. The evolution of functions in C++ goes one step further.
⚠️ The challenge of understanding coroutines
It was quite a challenge for me to understand coroutines. I strongly suggest that you should not read the sections in the chapter in sequence. Skip in your first iteration the sections “The Framework”, and “The Workflow”. Furthermore, read the case studies “Variations of Futures”, “Modification and Generalization of a Generator”, and “Various Job ...