Hacker News new | ask | show | jobs
by tripletpeaks 291 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.
2 comments

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

Somehow I prefer the explicitness of Promise.then().catch(). When I have to do JS. Am I the only one?