Re:I Avoid Async/Await
by alerighi on Saturday April 16, 2022 @07:40AM
(#31051537)
It's the same code. Async/await is just syntactic sugar over the promise syntax.
To me depends on what you are doing, there are cases where using .then()/.catch() and .finnally() makes the code more concise and simpler than using async/await.
To me depends on what you are doing, there are cases where using .then()/.catch() and .finnally() makes the code more concise and simpler than using async/await.