Back to Content

WorkerNavigator: locks property

files/en-us/web/api/workernavigator/locks/index.md

latest451 B
Original Source

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

The locks read-only property of the {{domxref("WorkerNavigator")}} interface returns a {{domxref("LockManager")}} object which provides methods for requesting a new {{domxref('Lock')}} object and querying for an existing Lock object.

Value

A {{domxref("LockManager")}} object.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}