Refactoring towards Structured Concurrency
summary
C++26 introduces Senders and Receivers as a practical path to adopt structured concurrency alongside C++20 coroutines, promising composable low‑overhead async code that avoids thousands of OS threads (think 1,000–100,000) by using reactor patterns. The advice is to start migrating with coroutines, reuse libraries like Boost.Asio and cppcoro, and adopt senders where tighter control and no-heap guarantees matter; senders interoperate with coroutines, so you can gradually refactor and preserve performance while gaining deterministic lifetimes. coroutines are structured concurrency
AI-written summary · about
chapters (10)
- 0:00Introduction and speaker intro
- 1:06Why concurrency in systems
- 13:28Concurrency building blocks
- 27:55Structured concurrency explained
- 34:59Coroutines as structured concurrency
- 39:13Senders and receivers in C++26
- 45:02Code examples comparison
- 50:00Migration to structured concurrency
- 58:27Summary and future outlook
- 59:12Q&A session
