C++20 Coroutines back to basics — Restrictions and rules for legal coroutines
5 min readMay 2, 2022
1. Introduction
In my previous articles on coroutines, I attempted to explain the mechanics of coroutine suspension, resuming it, promise_type, awaiters and awaitables. In this article, I would like to answer two very basic questions:
- What are the restrictions on coroutines ?