LockManager

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{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}}