Conference | Live Schedule | Talks | Get your ticket | Slides | Set your timezone
Why use coroutines for asynchronous applications?

Johan Vanslembrouck
On Day 3 at 11:40 (CET/Berlin) in Track D online
C++ coroutines allow writing reactive, asynchronous applications using a synchronous style.
An application developer no longer must cut an application into small pieces that do not wait/block internally and that must be “stitched” together, e.g. using a chain of callback functions or state machines. The C++20 compiler does all the hard work for you now, even for functions with a complex control flow. As a result, you can develop applications much faster, and they are more maintainable than without the use of coroutines.
The presentation will discuss several example programs, comparing a synchronous version with an asynchronous version and a coroutine version. The presentation includes a short introduction to coroutines; no in-depth a priori knowledge of coroutines is necessary to follow the presentation.
The source code of all examples used in the presentation is available on GitHub and runs on Windows 10/11 and on Ubuntu 22.04/24.04 or similar.
Please login to comment