Async/await or Promises?
simonedegiacomi opened this issue · comments
We need to decide if we want to use the new async/await or promises. I think that we can share our opinions and then decide which to use.
My opinion: I prefer the new async/await construct. If you haven't used it before maybe you can find the Promises more natural, but if you try to write a couple of function with Promises and then async/awai I think you would change your opinion.
Also, using async/await we can use the classic try/catch construct to catch async exceptions.
You mean, choosing between keeping all the project with async/await structures or keeping the .then() construct (and related)?
If so, I would prefer the async/wait structure too
Yes, I think it's better to do the same thing across all the project
I also agree that the code written with async/await seems more clean.
i prefer async and await
We shall keep focused on one track. But if you can grant that coding with async/await it's easier they're good for me.
Decided, we'll use async/await