Search⌘ K

Introduction to Tasks

Explore asynchronous tasks in C++ by understanding the role of promises and futures. Learn how these components communicate through data channels to manage task results independently. Gain insight into task behavior for concurrency, preparing you for deeper concepts in thread and task differences.

We'll cover the following...

In addition to threads, C++ has tasks to perform which work asynchronously. These tasks need the <future> header, and they are parameterized with a work package. Additionally, they consist of two associated components: a promise and a future; Both are connected via a data channel. The promise executes the ...