TPL Async
Learn how the Task Parallel Library (TPL) helps you write high-performance, responsive, and scalable code by using asynchronous programming techniques.
You are currently not signed in. Please sign in to access subscriber-only content.
Currently using: {{getCurrentPlayerName()}} [Change]
| expand all | collapse all | Progress | Duration | |
|---|---|---|---|
Asynchronous Programming with the TPL - Overview |
|
01:04:19 | |
|
Introduction
|
|
01:15 | |
|
Asynchronous Defined
|
|
06:28 | |
|
An Asynchronous Example
|
|
05:55 | |
|
Tasks
|
|
03:39 | |
|
Demo: Using a Task-based API
|
|
06:45 | |
|
Tasks vs Older Async Patterns
|
|
07:56 | |
|
Error Handling
|
|
08:15 | |
|
Demo: Error Handling
|
|
06:00 | |
|
Continuations and Errors
|
|
03:42 | |
|
Composition
|
|
02:01 | |
|
Demo: Composition
|
|
04:56 | |
|
Task Status
|
|
06:01 | |
|
Summary
|
|
01:26 | |
TaskCompletionSource |
|
00:30:38 | |
|
Introduction
|
|
00:59 | |
|
TaskCompletionSource<T>
|
|
02:00 | |
|
Demo: TaskCompletionSource<T>
|
|
08:32 | |
|
Errors and Cancellation
|
|
01:14 | |
|
Demo: Reporting Errors
|
|
07:39 | |
|
Argument Errors
|
|
03:02 | |
|
Demo: Deferred Argument Validation
|
|
03:08 | |
|
Non-Throwing Completion Methods
|
|
01:59 | |
|
Summary
|
|
02:05 | |
C# Asynchronous Support |
|
00:52:30 | |
|
Introduction
|
|
00:45 | |
|
async and await
|
|
06:37 | |
|
Demo: async and await
|
|
09:03 | |
|
Returning Tasks
|
|
03:59 | |
|
Exception Handling
|
|
01:47 | |
|
Demo: Exception Handling
|
|
15:39 | |
|
Handling All InnerExceptions
|
|
02:47 | |
|
Parameter Validation
|
|
03:41 | |
|
Missing an Exception
|
|
04:39 | |
|
SynchronizationContext
|
|
01:01 | |
|
Summary
|
|
02:32 | |
Using Tasks with Other Asynchronous Patterns |
|
00:29:45 | |
|
Introduction
|
|
01:09 | |
|
The APM
|
|
04:10 | |
|
Mapping the APM to a Task
|
|
03:36 | |
|
Demo: APM to Task
|
|
02:10 | |
|
Presenting a Task through the APM
|
|
02:25 | |
|
Demo: Implementing the APM with Task
|
|
08:37 | |
|
The EAP
|
|
03:35 | |
|
Demo: Wrapping the EAP with a Tasks
|
|
03:12 | |
|
Summary
|
|
00:51 | |
Cancellation |
|
00:50:07 | |
|
Introduction
|
|
01:04 | |
|
Cancellation Model
|
|
08:39 | |
|
CancellationToken
|
|
03:53 | |
|
Demo: Cancelling Operations
|
|
04:08 | |
|
CancellationTokenRegistration
|
|
04:50 | |
|
Demo: Writing a Cancellable Task
|
|
05:54 | |
|
SynchronizationContext
|
|
00:59 | |
|
CancellationToken is a Value Type
|
|
01:38 | |
|
Tasks and Cancellation
|
|
02:49 | |
|
Demo: Task Cancellation, Without Thread’s Participation
|
|
04:23 | |
|
Demo: Task Cancellation, With Thread’s Participation
|
|
01:37 | |
|
Demo: Task Cancellation, With Task.WhenAll
|
|
01:26 | |
|
Cancellation and Deadlock
|
|
05:23 | |
|
Linked Tokens
|
|
01:09 | |
|
Summary
|
|
02:15 | |
Task Schedulers |
|
00:40:53 | |
|
Introduction
|
|
00:55 | |
|
TaskScheduler
|
|
06:28 | |
|
Default (Thread Pool) Scheduler
|
|
05:47 | |
|
SynchronizationContext Scheduler
|
|
04:00 | |
|
Demo: TaskSchedulers and WPF
|
|
03:11 | |
|
Custom Schedulers
|
|
07:00 | |
|
Demo: Custom TaskScheduler
|
|
11:58 | |
|
Summary
|
|
01:34 |
Asynchronous Programming with the TPL - Overview