Technical requirements
The async function has been available since C++11, but some examples use features from C++14, such as chrono_literals
, and C++20, such as counting_semaphore
, 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_07
folder. All source code files can be compiled using CMake as follows:
cmake . && cmake —build .
Executable binaries will be generated under the bin
directory.