Giter Club home page Giter Club logo

Comments (6)

mariodivece avatar mariodivece commented on August 28, 2024 1

I am reopening this issue because and marking it as an enhacement to change calls that can be changed to ConfigureAwait(false) i.e. those that don't require context. Are there any other specific recommendations that you might want to suggest @kdblocher ?

from embedio.

mariodivece avatar mariodivece commented on August 28, 2024

Do you have a pull request that we may use to implement your proposed changes?

from embedio.

kdblocher avatar kdblocher commented on August 28, 2024

I can see if I can put one together. I thought it might be at least useful for you guys to read up about this topic, since the pattern is becoming a lot more commonplace.

from embedio.

kdblocher avatar kdblocher commented on August 28, 2024

There are still several problematic uses of Task.Factory.StartNew and sync-over-async antipatterns throughout the code, but I don't think they're fixed easily (from the outside). I still suggest you take a look through the blog (for that matter, any of Stephen Cleary's writing) and read some of the common suggestions. Most are applicable in your case.

See http://stackoverflow.com/a/36355946 and https://msdn.microsoft.com/en-us/magazine/jj991977.aspx for more information.

from embedio.

kdblocher avatar kdblocher commented on August 28, 2024

@mariodivece yes: follow the "async is viral" approach - e.g. everything lower-level that is asynchronous should be called by asynchronous methods itself. This is the most performant, and the cleanest. (I actually tried to do this with your code but ran into a couple of pitfalls.)

I can add a couple of commits with small changes to demonstrate.

from embedio.

geoperez avatar geoperez commented on August 28, 2024

@kdblocher check my latest commits, I've been updating the code to a better async/await approach.

from embedio.

Related Issues (20)

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.