LockManager

The LockManager interface of the Web Locks API provides methods for requesting a new Lock object and querying for an existing Lock object. Available only in secure contexts.

MDN Reference

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun <T : JsAny?> request(name: String, callback: LockGrantedCallback<T>): T
suspend fun <T : JsAny?> request(name: String, options: LockOptions, callback: LockGrantedCallback<T>): T
Link copied to clipboard
fun <T : JsAny?> requestAsync(name: String, callback: LockGrantedCallback<T>): Promise<T>
fun <T : JsAny?> requestAsync(name: String, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>