Get a hands-on overview of asynchronous programming in the C# programming language.
Overview
Syllabus
Introduction
- Create happier users with asynchronous C#
- What you should know
- What is asynchronous programming?
- When and why to write asynchronous code
- Patterns for asynchronous programming in C#
- Creating and executing tasks
- Waiting for tasks to complete
- Using continuations
- Updating the user interface
- Challenge: Create and continue a task
- Solution: Create and continue a task
- Benefits of using async and await
- Awaiting a task
- Handling exceptions
- Challenge: Await HTTP requests
- Solution: Await HTTP requests
- Using cancellation tokens
- Implementing timeout cancellations
- Reporting task progress
- Challenge: Cancel a slow HTTP request
- Solution: Cancel a slow HTTP request
- Next steps
Taught by
Anton Delsink