requestAsync

fun <T : JsAny?> requestAsync(name: String, callback: LockGrantedCallback<T>): Promise<T>(source)

The request() method of the LockManager interface requests a Lock object with parameters specifying its name and characteristics.

MDN Reference


fun <T : JsAny?> requestAsync(name: String, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>(source)