PhoenixSharp icon indicating copy to clipboard operation
PhoenixSharp copied to clipboard

Async/await API?

Open Shivang44 opened this issue 5 years ago • 3 comments

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.

Shivang44 avatar Oct 26 '19 10:10 Shivang44

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.

Mazyod avatar Oct 26 '19 13:10 Mazyod

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.

Shivang44 avatar Oct 26 '19 23:10 Shivang44

~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).

Mazyod avatar Mar 28 '22 01:03 Mazyod