std::async

This lesson offers an introduction to std::async, which is used in C++ for multithreading.

We'll cover the following...

Introduction

std::async behaves similar to an asynchronous function call. This function call takes a callable together with its arguments. std::async is a variadic template and can, therefore, take an arbitrary number of arguments. The call to std::async returns a future object fut. That’s your handle for getting the result via fut.get().

🔑 std::async should ...