Before you begin
This is a Xamarin.Forms class. To complete the coding exercises, you will need a Xamarin.Forms development environment with either a simulator or a device to run the exercise on. Please see the setup page if you need help installing the Xamarin development environment.
Overview
In this class you will learn how to apply asynchronous programming models to your C# applications in order to keep you app's UI responsive during long running operations.
Objectives
- Introducing the async and await keywords
- Applying async and await
- Diving into the internals of async and await
Lecture
Exercises
Exercise materials are available from GitHub. The code can be cloned through a desktop Git client or downloaded directly as a ZIP file.
- Use existing async APIs in an applicationExercise
In this exercise, we will modify an application that downloads Movie data synchronously to use the event-based Async pattern. - Convert app to use async and awaitExercise
In this exercise, we will update an application using the event-based Async pattern to use the task-based Async pattern.
Additional resources
Here are the Frequently Asked Questions about Async and Await.