Explore coroutines in C++20 through this comprehensive conference talk from NDC TechTown 2021. Dive into the newly standardized feature, now available in all major compilers, and learn how to effectively implement it in your code. Discover the intricacies of coroutine invocation, promise types, and task handling through practical examples using a custom coroutine library. Gain insights into synchronization, weight management, and common pitfalls when working with coroutines. By the end of this 47-minute presentation, acquire the knowledge to rewrite and optimize your code using coroutines, understanding both their benefits and potential challenges.
Overview
Syllabus
Intro
Plan
Motivation
Theory
Steps of invocation
Promise type
Taskind
Summary
Call a protein
Recap
SyncWeight
Conclusion
Rewriting the code
Why it doesnt work
How to use it
Taught by
NDC Conferences