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
Show parent comment
3
u/Federal-Pear3498 Dec 06 '25
You just temporarily postponed it, the main thread will have to come and pick them up later, so instead of 10s frozen in the middle of the execution it will freeze a bit later, and you dont have to wrap it in the promise, just the time out is enough