Level: Introductory to Intermediate
There's a lot of confusion about async/await, Task/TPL, and asynchronous and parallel programming in general. This session will start with the basics and look at how you can consume asynchronous methods using Task and then see how the "await" operator can makes things easier for us. Along the way, you'll look at continuations, cancellation, and exception handling.
You will learn:
- How to consume asynchronous methods using Task (for flexibility) or await (for easy use)
- How to handle exceptions that happen in asynchronous methods
- How to request cancellation with a CancellationTokenSource