This is a practical technical book that takes you from foundational concepts to real-world applications, helping you systematically master asynchronous programming in .NET 10. Throughout the book, you will build a clear understanding of threads, Task, async/await, cancellation and timeouts, synchronization primitives, parallel processing, asynchronous data streams, asynchronous resource management, and more advanced topics such as TaskCompletionSource, ValueTask, ExecutionContext, and API design.
This book does more than show you the syntax. It also emphasizes the thinking behind it and the judgment needed in practice. You will learn when to use asynchrony, when to use parallelism, how to avoid common pitfalls such as sync-over-async, deadlocks, and thread pool starvation, and how to write modern .NET code that balances correctness, readability, and performance.
Inside the book, you will learn how to:
- Build a clear mental model for threads, concurrency, parallelism, and asynchrony
- Use async/await, Task.WhenAll, cancellation, timeouts, and exception handling with confidence
- Understand synchronization primitives, thread safety, immutable design, and parallel processing
- Master IAsyncEnumerable, await foreach, Channel, and IAsyncDisposable
- Dive into TaskCompletionSource, ValueTask, Task.Yield, ExecutionContext, and TaskScheduler
- Learn the design principles behind modern asynchronous APIs in .NET
- Apply these ideas in real scenarios such as ASP.NET Core, WinForms, and WPF
Whether you are a .NET developer looking to strengthen your async/await fundamentals, an experienced engineer who wants a deeper understanding of the underlying machinery, or someone who wants to build applications that are more stable, more responsive, and more scalable, this book will serve as a complete guide to modern asynchronous programming in .NET.
Book outline
Chapter 1: Understanding threads and asynchrony
Chapter 2: Threads and tasks in .NET
Chapter 3: async and await
Chapter 4: Exception handling and cancellation
Chapter 5: Thread synchronization and classic problems
Chapter 6: Thread safety and immutable collections
Chapter 7: Parallel processing and PLINQ
Chapter 8: Asynchronous streams and resource management
Chapter 9: Advanced Task programming
Chapter 10: Practical scenarios and best practices
Chapter 11: Guidelines for designing asynchronous APIs
Michael Tsai has more than a decade of experience in software development and technical writing. He has been recognized as a Microsoft Most Valuable Professional (MVP) in .NET for 20 consecutive years.
Author of Modern C#: Developer’s Craft in the AI Era (2026) and .NET Dependency Injection (written in Traditional Chinese, 2018).
Translator of Brownfield Application Development in .NET (Traditional Chinese edition, 2010).