3 ms·
> This seems so obvious in hindsight as the "right way". I wonder why we went down that whole async/await craze with so many languages? That’s basically what a
by olliej 5y ago
> This seems so obvious in hindsight as the "right way". I wonder why we went down that whole async/await craze with so many languages?
That’s basically what async swift does?
It is also orthogonal to async/await.
Async/await is a mechanism a programming language uses to allow you to write straight line code without having to write blocking code. You could resolve that by creating a hulking thread, but that just means you need to await a thread result :)
Also JS isn’t going anywhere, and it seems unlikely it will ever get multiple execution threads