worker_threads.locks


稳定性: 1 - 实验性

  • LockManager

LockManager 的一个实例,可用于协调对可能在同一进程内多个线程之间共享的资源的访问。该 API 反映了 浏览器 LockManager 的语义

【An instance of a LockManager that can be used to coordinate access to resources that may be shared across multiple threads within the same process. The API mirrors the semantics of the browser LockManager