C++20 Coroutines - Complete Guide

preview_player
Показать описание
A complete guide for C++20 coroutines. From a simple coroutine to writing custom awaitable types. Coroutines allow you to write asynchronous code in a very natural way that mimics normal functions.

Рекомендации по теме
Комментарии
Автор

Finally someone who understands Coroutines (◕ ᴥ ◕ )

destiny_
Автор

Some real challenge to keep it all in my head. But i'm going for it. Thanks a lot for clean and complete explanation

LudwigvanBeethoven
Автор

Hi Simon, I think there is an UB to access done() after co routine is destroyed because you have used suspend_never in the final_suspend().

dekadebashish
Автор

I feel like this is just as much work as multithreaded programming, so I'm having trouble thinking of a situation where i would want to do this instead of a multithreaded strategy.

CrashOverride
Автор

You mentioned that coroutine is allocated on the heap. How do you know this?

tamatoFiend
Автор

My god, i just want to learn C++ as a hobby, some of these concepts (no pun intended) are so complicated. I install inground pools for a living, this is getting beyond my scope of understanding...

KaylansDrone
Автор

You are talking and talking but code is not visible. Poor presentation, sorry.

kirazliburak
Автор

Looks like you just read from a paper note in front of you. 😁

snandi
Автор

Cool video, but it's hard to read the code

Andrew-Gosling