News for hackers. Stuff that matters.
Re:Internals of Async / Await in JavaScript by heavenlyblue on Saturday September 02, 2023 @05:58AM (#37360041)
You could also have an object with on_success, on_failure attributes so Futures are the same syntax sugar
Re:Internals of Async / Await in JavaScript by littlestymaar on Saturday September 02, 2023 @10:15AM (#37361724)
In JavaScript, where you have first class functions and an event loop built-in, yes. But for languages that lack one of those, then no.