LockManager
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2022.
Web Locks API の LockManager
インターフェイスは、新しい Lock
オブジェクトを要求するメソッドと、既存の Lock
オブジェクトを取得するメソッドを提供します。LockManager
のインスタンスを得るには、navigator.locks
を参照します。
インスタンスメソッド
LockManager.request()
-
名前と性質を指定する引数をとり、
Lock
オブジェクトを要求します。 LockManager.query()
-
確保中のロックと獲得待ち中のロックに関する情報を持ったオブジェクトで解決する
Promise
を返します。
仕様書
Specification |
---|
Web Locks API # api-lock-manager |
ブラウザーの互換性
Report problems with this compatibility data on GitHubLegend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.