Posts

Showing posts from July, 2022

Overview of C++20: Coroutines

Image
Posts in "Overview of C++20" Ranges Concepts Modules Coroutines TBA: ... 📌 Disclaimers: The idea of this overview is self-education. Please consider this post as my notes during the reading. The main goal - keep it simple and short. ❗ There is no guarantee that below theoretical and practical parts are correkt and up-to-date. Table of Contents Introduction Sync vs Async and Concurrent vs Parallel My First Coroutine The Awaitable Interface Some More Details In addition Summary Sources Introduction Coroutines are complex but revolutionary step towards elegant asynchronous programming in C++. You can write code that looks sequential but executes asynchronously. Yeah, coroutines are all about asynchronous programming. So what's that? Let’s sort out some terms before writing the first coroutine. Sync vs As