YoVDO

Deciphering Coroutines - A Visual Approach

Offered By: Meeting Cpp via YouTube

Tags

Coroutines Courses Asynchronous Programming Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore a comprehensive visual approach to understanding C++20 coroutines in this conference talk from Meeting C++ 2022. Dive into the complexities of coroutine syntax, learning how different elements of the mechanism fit together and how to distinguish between coroutine-specific rules and conventional C++ rules. Construct a coroutine cheat sheet with easily recognizable visual cues to navigate the intricacies of this powerful language feature. Focus on gaining a solid foundation in coroutine syntax, preparing you to tackle more advanced coroutine topics in the future. Through examples and diagrams, examine concepts such as async suspended execution, generator objects, core routines, awaitables, suspension, quarantine, and symmetric transfer. By the end of this talk, gain the tools to read and reason about coroutine code effectively, setting the stage for further exploration of this transformative C++20 addition.

Syllabus

Intro
Agenda
Disclaimer
Basics
Async
Suspended execution
Generator example
Generator object
Interface
Return type
Core routine
Core routine example
Print statement
Pause function
awaitable
suspension
quarantine
suspend always
cheat sheet
awaitables
resuming core routines
resume example
the problem
first connection
await suspend
recap
essential examples
callweight
await
for caller
getanswer
controlflow
the other way
the caller side
the quarantine
the await suspend
return value
yield
yield value
customer waitable
symmetric transfer
hand control back
Symmetrical transfer
Summary
Learning the syntax
Cheatsheet
Questions


Taught by

Meeting Cpp

Related Courses

Design Patterns in Modern C++
Udemy
Unity GameObject Singletons: Best Practices
Pluralsight
C# Scripting in Unity: Beyond the Basics
Pluralsight
Android Development Essential Training: Manage Data with Kotlin
LinkedIn Learning
Intermediate Kotlin for Android Developers
LinkedIn Learning