News for hackers. Stuff that matters.
Re:I Avoid Async/Await by love2read on Saturday April 16, 2022 @09:57AM (#31052363)
this works in older versions of node too:

const wait = require(‘util’).promisify(setTimeout)

Re:I Avoid Async/Await by oauea on Saturday April 16, 2022 @11:37AM (#31053144)
but not in the browser