(Don't) Use Coroutines for This - Exploring C++20 Coroutines Beyond Concurrency
Meeting Cpp via YouTube
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore C++ coroutines beyond their traditional concurrency applications in this 41-minute conference talk from Meeting C++ 2025. Examine how coroutines can serve as a general flow control mechanism rather than solely for asynchronous execution, moving past the initial hype around C++20's coroutine features. Learn about the current state of coroutines in the C++ standard, including the introduction of std::generator as the primary synchronous coroutine type, while understanding why asynchronous coroutines didn't make it into the standard and how structured concurrency efforts shifted toward senders and receivers. Discover practical examples demonstrating how coroutines can simplify real-world code for non-concurrent scenarios, treating them as fundamental language constructs similar to branching, loops, and functions. Gain insights into alternative use cases for coroutines that extend beyond their commonly discussed asynchronous programming applications, providing a fresh perspective on this C++20 feature's versatility in everyday programming tasks.
Syllabus
(Don't) use coroutines for this - Ivan Čukić - Meeting C++ 2025
Taught by
Meeting Cpp