Introduction to Promises and Futures
This lesson gives an introduction to std::promise and std::future, which are used in C++ for multithreading.
We'll cover the following...
Promise and future make a mighty pair. A promise can put a value, an exception, or simply a notification into the shared data channel. One promise can serve many std::shared_future
futures. With C++20, we may get extended futures that are composable. ...