LockDB is a cross-platform tool you can use to handle process/event locking and avoid race conditions. It is sometimes also known as a semaphore.<p>There are packages for Node.js / Browser / Bun / NPM, Deno, and you can also use it as a CLI.<p>The new LockDB release supports a feature request common for complex locking necessities: The ability to lock, unlock, and check multiple locks.<p>I understand new features aren't _generally_ accepted [1] here, but this one seemed "juicy" enough for it. Feel free to remove the post if I'm wrong, and I apologize in that case!<p>[1]: <a href="https://news.ycombinator.com/showhn.html">https://news.ycombinator.com/showhn.html</a>