Search⌘ K

Introduction

Explore the basics of asynchronous programming with C++ coroutines. Understand how to use co_await and awaitable types and discover libraries such as Boost.Asio and CppCoro that facilitate asynchronous tasks in C++20. This lesson introduces key coroutine concepts without focusing on performance optimization.

We'll cover the following...

The generator class implemented in the previous chapter helped us to use coroutines for building lazily evaluated sequences. C++ coroutines can also be used for asynchronous programming by having a coroutine represent an asynchronous computation or an asynchronous task. Although asynchronous programming is the most important ...