r/javascript • • Dec 05 '25

The missing standard library for multithreading in JavaScript

https://github.com/W4G1/multithreading
146 Upvotes

33 comments sorted by

View all comments

Show parent comment

6

u/Waltex Dec 05 '25

Appreciate it! For atomic locking the library exposes Mutex and RwLock. They use Atomics.wait() and Atomics.notify() under the hood. Let me know if you're missing any other features 🙂