File tree 2 files changed +8
-5
lines changed
dom/src/main/scala/org/scalajs/dom
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,20 @@ import scala.scalajs.js
4
4
import scala .scalajs .js .annotation .JSGlobal
5
5
6
6
/** The [[Lock ]] interface of the Web Locks API provides the name and mode of a lock. This may be a newly requested lock
7
- * that is received in the callback to [[LockManager.request ]], or a record of an active or queued lock returned by
8
- * [[LockManager.query ]].
7
+ * that is received in the callback to [[LockManager.request(name:String,callback:* LockManager.request ]], or a record
8
+ * of an active or queued lock returned by [[LockManager.query ]].
9
9
*/
10
10
@ js.native
11
11
@ JSGlobal
12
12
class Lock private [this ] extends js.Object {
13
13
14
- /** The access mode passed to [[LockManager.request ]] when the lock was requested. */
14
+ /** The access mode passed to [[LockManager.request(name:String,callback:* LockManager.request ]] when the lock was
15
+ * requested.
16
+ */
15
17
def mode : LockMode = js.native
16
18
17
- /** The name passed to [[LockManager.request ]] when the lock was requested. */
19
+ /** The name passed to [[LockManager.request(name:String,callback:* LockManager.request ]] when the lock was requested.
20
+ */
18
21
def name : String = js.native
19
22
20
23
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class LockManager private[this] extends js.Object {
14
14
def query (): js.Promise [LockManagerSnapshot ] = js.native
15
15
16
16
/** Requests a [[Lock ]] object with parameters specifying its name and characteristics. The requested [[Lock ]] is
17
- * passed to a callback, while the function itself returns a [[ js. Promise]] that resolves with `undefined`.
17
+ * passed to a callback, while the function itself returns a ` Promise` that resolves with `undefined`.
18
18
*/
19
19
def request (name : String , callback : js.Function1 [Lock , js.Promise [Unit ]]): js.Promise [Unit ] = js.native
20
20
You can’t perform that action at this time.
0 commit comments