There's a lot of confusion about async/await, Task/TPL, and asynchronous and parallel programming in general. This session starts with the basics and looks at how to consume asynchronous methods using Task and then see how the "await" operator can makes things easier. Along the way, you'll also 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