C# 5 introduced two keywords to simplify working with the Task
type. They are especially useful for the following:
In Chapter 10, Building Web Sites Using ASP.NET Core MVC, and in Chapter 11, Building Web Services and Applications Using ASP.NET Core, we will explore how the async
and await
keywords can improve scalability in websites, web services, and web applications.
In Chapter 12, Building Windows Apps Using XAML and Fluent Design, and in Chapter 13, Building Mobile Apps Using XAML and Xamarin.Forms, we will explore how the async
and await
keywords can implement multitasking with a GUI running on Universal Windows Platform and Xamarin.
For now, let's learn the theory of why these two C# keywords were introduced, and then later you will see them used in practice.