Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C-Sharp-Promise vs UnityFx.Async #50

Open
jdnichollsc opened this issue Jan 21, 2019 · 3 comments
Open

C-Sharp-Promise vs UnityFx.Async #50

jdnichollsc opened this issue Jan 21, 2019 · 3 comments

Comments

@jdnichollsc
Copy link
Member

Review the advantages to migrate the promises system and support async / await

@Arvtesh
Copy link

Arvtesh commented Jan 22, 2019

Hey! First of all thank you for your interest in UnityFx.Async. You can find a detailed comparison of the two libraries in README.md at the project Github repo.

Summing it up:

  • UnityFx.Async is an open source project just as C-Sharp-Promise;
  • UnityFx.Async supports most features of C-Sharp-Promise;
  • UnityFx.Async is thread-safe;
  • UnityFx.Async supports async/wait as well as Unity coroutines (you can yield any operation);
  • UnityFx.Async is more efficient (less overall memory used and less allocations made).
  • UnityFx.Async is split into two parts: NuGet package without Unity dependencies and AssetStore package that contains the core and Unity-specific stuff.

The only drawback is it is pre-release still (release is planned in a few months) and not as widely used (documented) as C-Sharp-Promise. Also please note that currently published Asset Store package does not support async/await because it targets net35, the NuGet package supports net35, net46 and netstandard20.

That said, in case you decide to migrate, I'd happily assist you with the migration process and any difficulties you may face. Feel free to ask any more questions!

@jdnichollsc
Copy link
Member Author

@Arvtesh woww excellent mate, let me create other branches in order to integrate your package and debug the different targets, thanks for your collaboration! 👍

@kolodi
Copy link

kolodi commented Mar 15, 2019

Unity would probably move towards their own Job System rather than embrace async/await feature of c#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants