Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 863 Bytes

File metadata and controls

25 lines (17 loc) · 863 Bytes
title LockManager
slug Web/API/LockManager
page-type web-api-interface
browser-compat api.LockManager

{{APIRef("Web Locks API")}}{{securecontext_header}} {{AvailableInWorkers}}

The LockManager interface of the Web Locks API provides methods for requesting a new {{domxref('Lock')}} object and querying for an existing Lock object. To get an instance of LockManager, call {{domxref('navigator.locks')}}.

Instance methods

  • {{domxref('LockManager.request()')}}
    • : Requests a {{domxref('Lock')}} object with parameters specifying its name and characteristics.
  • {{domxref('LockManager.query()')}}
    • : Returns a {{jsxref('Promise')}} that resolves with an object that contains information about held and pending locks.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}