▲ | tripletpeaks 2 days ago | |
It’s probably related to the fact that when they added “await” to JavaScript, it seemed to become the most popular keyword in the language overnight, just comical amounts of it in the average new JavaScript file in the wild. | ||
▲ | lelanthran 2 days ago | parent | next [-] | |
Quite a lot of my js functions don't await; instead I simply return the promise and let the caller `await` or more often attach a `then` as they see fit. The default linter in Vs Code keeps marking those functions with warnings though. Says I should mark them as async | ||
▲ | zelphirkalt 20 hours ago | parent | prev [-] | |
Somehow I prefer the explicitness of Promise.then().catch(). When I have to do JS. Am I the only one? |