There's no merit of what should be a project wide function being a single line instead of 3 to avoid "hard to grok" syntax.
Wait till you see the rest of javascript...
Re:I Avoid Async/Await
by eurasiantiger on Saturday April 16, 2022 @05:36PM
(#31056304)
Your comment is snarky and categorically dismissive. Care to explain why you have taken such an aggressive stance against JS?
this works in older versions of node too:
const wait = require(‘util’).promisify(setTimeout)
Of course in newer versions of node we can now do: