Technical requirements
In this chapter, we will be using the .NET command-line interface (CLI) and Visual Studio Code to build and run the sample projects. To follow along with the examples, the following software is recommended:
- Visual Studio Code version 1.65 or later
- .NET 6 or later
While these are recommended, if you have .NET 6 installed, you can use your preferred editor. For example, Visual Studio 2022 version 17.0 or later if you are using Windows 10 or 11, Visual Studio 2022 for Mac on macOS 10.13 or later, or JetBrains Rider will work just as well.
All the code examples for this chapter can be found on GitHub at https://github.com/PacktPublishing/Parallel-Programming-and-Concurrency-with-C-sharp-10-and-.NET-6/tree/main/chapter05.
Let’s get started by working our way through some examples that use the TAP model with async
and await
.