C++ Coroutines and Structured Concurrency in Practice
summary
Describes an open-source runtime called Corral framework that applies structured concurrency to real I/O-bound production code, interoperates with existing loops (example: Boost.Asio), and claims concrete outcomes — ~40–50% code reduction and fewer weird bugs after two years in production. Covers API design, task cancellation semantics, timeouts, nursery/task-group patterns, and practical migration patterns for callback-heavy legacy code; shows what was built and that it worked in multiple services.
AI-written summary · about
chapters (11)
- 0:00C++ coroutines introduction
- 2:51Structured concurrency
- 7:51Designing concurrency API
- 12:25TCP echo server
- 17:44Nurseries as primitives
- 22:21Async primitives
- 24:25Cancellation in concurrency
- 34:17Resource cleanup
- 37:22Callback interop
- 42:00Three years experience
- 43:46Q&A on p2300
related talks
45mAsynchrony and Coroutines
01h 05mWhy use coroutines for asynchronous applications
31mCoroutine Patterns: Problems and Solutions Using Coroutines in a Modern Codebase
47mC++ coroutines and Qt
01h 02mC++20’s Coroutines for Beginners
55mC++20 coroutines as an API principle
58mAn Introduction to C++ Coroutines
57m[filtered] Asynchronous C++ Programming
