C++ Coroutines and Structured Concurrency in Practice
summary
C++20 coroutines get practical tooling: an open source framework Corral implements structured concurrency, interoperates with custom event loops and Boost.Asio, and supports timeouts, cancellation and adapter awaitables. Production porting over two years shows concrete wins—porting I/O-bound services yields 40–50% code reduction, fewer lifetime bugs, and uniform cancellation semantics. The library uses nursery scopes, combiners like all_of/any_of, async cancellation with await_cancel, and an executor trampoline to keep resumptions predictable.
AI-written summary · about
chapters (8)
- 0:00Introduction and motivation
- 12:08Structured concurrency fundamentals
- 22:46Nurseries and task combiners
- 31:54Task cancellation mechanics
- 47:34Resource cleanup in coroutines
- 56:12Entering the coroutine universe
- 1:06:22Real-world usage and performance
- 1:15:55Q&A session
related talks
48mStructured Concurrency: Writing Safer Concurrent Code with Coroutines...
01h 06mC++ Coroutines from scratch
01h 16mC++ Feature Coroutines, Beginner Friendly
58m“Introduction to C++ Coroutines"
58m“C++ Coroutines - a negative overhead abstraction"
01h 05m“Concurrency, Parallelism and Coroutines”
45mTaming the Chaos - Structured Concurrency
01h 32mCoroutines and C++ DSLs for Human Scale Concurrency
