The query() method of the LockManager interface returns a Promise that resolves with an object containing information about held and pending locks.
The request() method of the LockManager interface requests a Lock object with parameters specifying its name and characteristics.
The
LockManagerinterface of the Web Locks API provides methods for requesting a new Lock object and querying for an existingLockobject. Available only in secure contexts.MDN Reference