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 navigator.locks.
Requests a Lock object with parameters specifying its name and characteristics.
Requests a Lock object with parameters specifying its name and characteristics. The requested Lock is
passed to a callback, while the function itself returns a Promise that resolves with undefined.
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
navigator.locks
.