More about asynchronous programming in .NET
- I/O-bound operations: These involve resources fetched from the network or disk.
- CPU-bound operations: These are in-memory, CPU-intensive operations.
In this section, we will create some real-world examples that use
await for each type of operation. Whether you are waiting for an external process to complete or performing CPU-intensive operations within your application, you can leverage asynchronous code to improve your application’s performance.
Let’s start by looking at some examples of I/O-bound operations.