Giter Club home page Giter Club logo

Comments (6)

ashleydavis avatar ashleydavis commented on July 17, 2024

I'm not sure how we can achieve this.

We need the promise library for .Net 3.5.

Do you know if there is a way to submit an alternative .NET core version to nuget?

from c-sharp-promise.

riezebosch avatar riezebosch commented on July 17, 2024

See my PR: #26. I have a package available on this feed so you can try it out: https://riezebosch.myget.org/feed/Packages/bearded-developer

from c-sharp-promise.

smallswan399 avatar smallswan399 commented on July 17, 2024

Aren't async/await good enough?

from c-sharp-promise.

ashleydavis avatar ashleydavis commented on July 17, 2024

Sure, but you need compiler support for that. If you don't have compiler support for it then you can't use async/await.

Besides that async/await is actually built on top of promises (they are called tasks in C#, but it's the same concept).

So if you want to use async/awaits it's actually good to understand how promises work, because that's what's underneath async/await.

In addition if you want to do parallel processing with async/await you'll need to bust out the promises anyway because async/await doesn't support that!

So as you can see it's a little more complicated than you thought.

from c-sharp-promise.

RoryDungan avatar RoryDungan commented on July 17, 2024

As far as I know, async/await is supported on all versions of .NET Core and .NET 4.5+, so if that does what you need then by all means use that. As Ash said, there are still some situations where you may find promises useful though.

I'm still not sure what the best way to support building DLLs for both .NET Core and .NET 3.5 is, but the source for the library should compile fine if you change the project to target .NET Core.

from c-sharp-promise.

RoryDungan avatar RoryDungan commented on July 17, 2024

As of v3.0.1, I've set up the project to build for both .NET Framework 3.5 and .NET Standard 2.0, which supports .NET Core 2.0 and up.

from c-sharp-promise.

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.