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

Async/await API? #16

Open
Shivang44 opened this issue Oct 26, 2019 · 3 comments
Open

Async/await API? #16

Shivang44 opened this issue Oct 26, 2019 · 3 comments

Comments

@Shivang44
Copy link

Shivang44 commented Oct 26, 2019

As I understand it, Unity3d now supports async/await but doesn't create a new thread for the execution.

Still, I believe it makes writing async code really intuitive and easy. The fenix library supports async/await (but doesn't work for me for other reasons) and the API is great.

What are your thoughts on this? Would this be a major code re-haul (I have no experience with C#)? If you want to do this I am willing to help in any way I can.

@Mazyod
Copy link
Owner

Mazyod commented Oct 26, 2019

Thanks for raising this. Support of C# 7.0 features have been on the roadmap, but never got around to it.

I am not sure if it would be an overhaul or a simple redundant API for the library that provides async/await flows. My intuition leads me to think it's a simple extra layer on top of the current API to support async/await.

I've wanted to work on it myself, but never had the chance.

@Shivang44
Copy link
Author

Awesome, glad there's interest. If I get time I will look into this myself as well. Very little experience in C# though. Hopefully a wrapper around the current API will be enough.

@Mazyod
Copy link
Owner

Mazyod commented Mar 28, 2022

I'll try to pick this one up during the rewrite #20. too big of a scope to deal with rn.

Basically, the main problem I'm facing with introducing async APIs is that I don't use them personally, which makes it challenging to conceive of a useful async API (given the lack of use case from my side).

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

2 participants