web api interface
LockManager
Secure context Available in workers
The LockManager interface of the Web Locks API provides methods for requesting a new Lock object and querying for an existing Lock object. To get an instance of LockManager, call locks.
Instance methods
request()- : Requests a
Lockobject with parameters specifying its name and characteristics.
- : Requests a
query()- : Returns a
Promisethat resolves with an object that contains information about held and pending locks.
- : Returns a
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.