Re:Beware of Async/Await
by throwaway43234 on Thursday July 30, 2020 @12:34PM
(#24000128)
What do you find painful about it? Have you tried the new vscode javascript debugger? It makes things fairly easy - I'd say the main issue is loss of local variables in async stack frames (which makes sense, unless they're closed they're gone), but that's not typically too big of a concern IMO.
It's also behaves like synchronous I/O, which is the whole point of the notation.
Which isn't to say all is rosy in async/await world. Debugging them (in JS in particular) is particularly painful.