proyecto26 / RestClient

🦄 A Promise based REST and HTTP client for Unity 🎮
https://assetstore.unity.com/packages/slug/102501
MIT License
1.24k stars 173 forks source link

Why not async/await? #236

Closed tomkail closed 1 year ago

tomkail commented 1 year ago

Hey! Bit new to async programming, and I was curious why this uses Promises rather than Async/Await? My limited experience has shown async to work pretty well, avoid callback hell, and it works in edit mode which is nice. Just curious! Ta!

maifeeulasad commented 1 year ago

Why I don't want to use async/await:

And break code into chunks. Always follow chunk over bulk. I don't know if it is a concept, pattern, or anything.

I'm going to close this issue now. But feel free to continue this thread.


And seriously, I'm so comfortable with Promise that, I never had the time to even check if our library supports async/await with Promise or not (Just like we do in JS/TS).

maifeeulasad commented 1 year ago

Good read:

I will try to put some more resources here. In case someone finds them helpful.

:beers: cheerio :beers: