Giter VIP home page Giter VIP logo

asyncawait's Introduction

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

asyncawait's People

Watchers

David Morrow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.