Interface LockManager
interface LockManager {
query(): Promise<LockManagerSnapshot>;
request(name: string, callback: LockGrantedCallback): Promise<any>;
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
}
query(): Promise<LockManagerSnapshot>;
request(name: string, callback: LockGrantedCallback): Promise<any>;
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
}
Methods
query
- query(): Promise<LockManagerSnapshot>
Returns Promise<LockManagerSnapshot>
request
- request(name, callback): Promise<any>
Parameters
- name: string
- callback: LockGrantedCallback
Returns Promise<any>
- request(name, options, callback): Promise<any>
Parameters
- name: string
- options: LockOptions
- callback: LockGrantedCallback
Returns Promise<any>
Available only in secure contexts.
MDN Reference