TPL Async
Learn how the Task Parallel Library (TPL) helps you write high-performance, responsive, and scalable code by using asynchronous programming techniques.
What you'll learn
Asynchronous programming is a fundamental programming technique, of vital importance both on server-side and client-side code. On the server, it can be the key to maximizing performance and enhancing scalability. On the client, it is a critically important technique for ensuring responsiveness. With the addition of intrinsic language support asynchronous programming, this is becoming an ever more important technique. This course describes how to use the asynchronous programming support in the Task Parallel Library (TPL), which was introduced in .NET 4.0. It also shows how the new language features in C# and Visual Basic fit in with the TPL.
Table of contents
- Introduction 1m
- Cancellation Model 9m
- CancellationToken 4m
- Demo: Cancelling Operations 4m
- CancellationTokenRegistration 5m
- Demo: Writing a Cancellable Task 6m
- SynchronizationContext 1m
- CancellationToken is a Value Type 2m
- Tasks and Cancellation 3m
- Demo: Task Cancellation, Without Thread’s Participation 4m
- Demo: Task Cancellation, With Thread’s Participation 2m
- Demo: Task Cancellation, With Task.WhenAll 1m
- Cancellation and Deadlock 5m
- Linked Tokens 1m
- Summary 2m