From Functions to Coroutines
summary
Explains how C++ coroutines differ from regular functions and how to use them in modern C++ (syntax, promise type, awaitable/awaiter concepts). Covers practical aspects like writing coroutine types, coroutine lifetime and resumption, and integrating coroutines with existing code and libraries using examples from the C++20 coroutine support.
AI-written summary · about
chapters (7)
- 0:00Functions and coroutines intro
- 10:44Functions as building blocks
- 20:12Function objects explained
- 30:35Lambdas and optimizations
- 37:08Promises and async
- 42:14Generators and streams
- 50:53Summary and outlook
related talks
01h 01mUnderstanding C++ Coroutines by Example: Generators (Part 1 of 2)
01h 03mUnderstanding C++ Coroutines by Example: Generators (Part 2 of 2)
36mWriting Sound Asynchronous Code with Coroutines
33mAsync Functions Awaiting You
01h 04m5 architectures of asynchronous JavaScript
57m5 architectures of asynchronous JavaScript
25mAsynchrony: Under the Hood
25mThe 80 20 Guide to Async Await
