Skip to content

Async await scenarios in xamarin apps. The good, the bad, and the ugly.

License

Notifications You must be signed in to change notification settings

DeanFaizal/async-await-xamarin-scenarios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

async-await-xamarin-scenarios

Async await scenarios in xamarin apps. The good, the bad, and the ugly.

Scenarios to explore

Bad examples and how to fix them Bad Examples 1:

  • Invoking tasks
  • Awaiting multiple tasks
  • Returning tasks
  • Threading

Bad Examples 2:

  • Updating UI properties
  • Handling exceptions
  • Timing out tasks
  • Using TaskCompletionSource

Bad Examples 3:

  • Using LongRunningTask

Other samples/experiments

  • Executing tasks:
    • The various ways to execute a task without awaiting. Just for illustration purposes. Don't execute tasks without awaiting unless there's a good reason to!
  • Awaiting tasks:
    • How to await tasks properly.
  • Configure await:
    • Using configure await.
  • Awaiting multiple tasks:
    • The different methods for executing multiple tasks asynchronously.

Resources

Channel9 Async Await: https://channel9.msdn.com/Tags/async

Stephen Toub's blog posts: https://devblogs.microsoft.com/dotnet/author/toub/

Stephen Cleary's blog posts: https://blog.stephencleary.com/

Brandon Minnick's Async/Await talk: https://www.youtube.com/watch?v=J0mcYVxJEl0

TPL Dataflow: https://channel9.msdn.com/Shows/Going+Deep/Stephen-Toub-Inside-TPL-Dataflow

Screenshots

About

Async await scenarios in xamarin apps. The good, the bad, and the ugly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages