Promise and Future: Returning a Notification
This lesson teaches us how to return a notification while using std::promise and future in C++.
We'll cover the following...
If we use promises and futures to synchronize threads, they have a lot in common with condition variables. Most of the time, promises and futures are the better choices. Before we present an example, here is the big picture.
...