WorkerNavigator: locks property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2022.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
Note: This feature is only available inWeb Workers.
Thelocks read-only property oftheWorkerNavigator interface returns aLockManagerobject which provides methods for requesting a newLock object andquerying for an existingLock object.
In this article
Value
ALockManager object.
Specifications
| Specification |
|---|
| Web Locks API> # dom-navigatorlocks-locks> |