Xamarin - async/await
This sample was first presented in the Xamarin Introduction to C# 5 Async webinar on August 15th, 2013. Re-live the excitement with these links to the video, slides and Xamarin docs.
Miguel's slides Craig's slides
Xamarin's Async support overview
The sample apps (for iOS and Android) has two examples:
- a simple text & image download using the new C# 5
async
andawait
syntax. - another example that shows how to download multiple files in the background and report download progress using
IProgress<T>
/Progress<T>
. It also demonstrates how to cancel the background downloads using aCancellationTokenSource
.
Also check out Miguel's blog post on the subject.