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 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.