November 2024
Intermediate to advanced
424 pages
9h 55m
English
In previous chapters, we learned the foundations of managing and synchronizing thread execution using C++. We also mentioned in Chapter 3 that to return values from a thread, we could use promises and futures. Now it’s time to learn how to do that and much more using these features in C++.
Futures and promises are essential blocks for achieving asynchronous programming. They define a way to manage the result of a task that will be completed in the future, usually in a separate thread.
In this chapter, we’re going to cover the following main topics:
Read now
Unlock full access