▲ | tempodox 7 months ago | |
> async/await makes the most sense for javascript. More like: Has no alternative. There are no threads in JS. | ||
▲ | threadthis 7 months ago | parent | next [-] | |
Yes there are. They are called "Workers" (WebWorkers), though. It's a semantic game with a different API but the same concept. | ||
▲ | com2kid 7 months ago | parent | prev [-] | |
Note that the underlying C++ libraries for Node are perfectly capable of using threads, only the final user space model is single threaded by default. |