Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

How to Start Using Coroutines

NDC Conferences via YouTube

Overview

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.

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

Reviews

Start your review of How to Start Using Coroutines

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.