r/javascript • u/Waltex • Dec 05 '25
The missing standard library for multithreading in JavaScript
https://github.com/W4G1/multithreading
146
Upvotes
r/javascript • u/Waltex • Dec 05 '25
View all comments
-1
u/TheThingCreator Dec 06 '25
is this kinda like
const t1 = new Promise(res => setTimeout(() => {
...do something..
res();
}, 0));
...t2, t3, t4 etc...
then
Promise.all(t1, t2, t3, ...);