Technical requirements
Promises and futures have been available since C++11, but some examples implemented in this chapter use features from C++20, such as std::jthread
, so the code shown in this chapter can be compiled by compilers supporting C++20.
Please check the Technical requirements section in Chapter 3 for guidance on how to install GCC 13 and Clang 8 compilers.
You can find all the complete code in the following GitHub repository:
https://github.com/PacktPublishing/Asynchronous-Programming-with-CPP
The examples for this chapter are located under the Chapter_06
folder. All source code files can be compiled using CMake as follows:
cmake . && cmake build .
Executable binaries will be generated under the bin
directory.