Chapter 5. What are we (a)waiting for? An introduction to multithreading for Xamarin apps

This chapter covers

  • What is a thread, and what is multithreading?
  • What the UI thread is, and why it’s special
  • Using tasks to run code on background threads
  • Using async and await to make your code cleaner

When building apps, you always want to give your users the best experience possible. The world of mobile apps is highly competitive, with app users willing to drop your app for a competitor if you offer them a bad experience. There are many ways to provide this bad experience, but one of the worst is having an app with a slow, lagging UI, or one that locks up and becomes unresponsive. Fortunately, fixing apps that lag or lock up is relatively easy, ...

Get Xamarin in Action: Creating native cross-platform mobile apps now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.