4 ms·
> async/await makes the most sense for javascript. More like: Has no alternative. There are no threads in JS.
by tempodox 2y ago
> async/await makes the most sense for javascript.
More like: Has no alternative. There are no threads in JS.
- threadthis 2y agoYes there are. They are called "Workers" (WebWorkers), though. It's a semantic game with a different API but the same concept. https://www.w3.org/TR/2021/NOTE-workers-20210128/ https://www.w3.org/TR/2021/NOTE-workers-20210128/
- com2kid 2y agoNote that the underlying C++ libraries for Node are perfectly capable of using threads, only the final user space model is single threaded by default.