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

YouTube

C++20 Coroutines - Introduction

code::dive conference via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the world of C++20 coroutines in this 58-minute conference talk from code::dive 2019. Gain insights into what coroutines are, their practical applications, and potential pitfalls in C++ programming. Learn how coroutines can enhance efficiency and code clarity in heavy-duty applications. Discover the speaker's journey from networking problems to coroutine solutions, understanding the differences between subroutines and coroutines. Delve into coroutine implementation, including tasks and generators, and explore their composability. Examine how coroutines can revolutionize asynchronous code writing. Led by Marcin Grzebieluch, a Software Architect with expertise in Linux, distributed computing, and C++, this talk provides a comprehensive introduction to C++20 coroutines for developers seeking to leverage this powerful new feature.

Syllabus

Intro
my networking app
my networking algorithm
problem
partial solution
how my application feels like
lets start with subroutines
function call procedure
Subroutine call actions
coroutine call procedure
take away
coroutine transformation
coroutine -recap
implementing coroutine type-task
usable task
we did it!
prefetching
generator!
implementing generator - interface
implementing generator - promise
its composable!
how do we want to compose tasks
back to motivation
any asynchronous code

Taught by

code::dive conference

Reviews

Start your review of C++20 Coroutines - Introduction

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.