File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
dom/src/main/scala/org/scalajs/dom Expand file tree Collapse file tree 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
44import scala .scalajs .js .annotation .JSGlobal
55
66/** 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 ]].
99 */
1010@ js.native
1111@ JSGlobal
1212class Lock private [this ] extends js.Object {
1313
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+ */
1517 def mode : LockMode = js.native
1618
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+ */
1821 def name : String = js.native
1922
2023}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class LockManager private[this] extends js.Object {
1414 def query (): js.Promise [LockManagerSnapshot ] = js.native
1515
1616 /** 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`.
1818 */
1919 def request (name : String , callback : js.Function1 [Lock , js.Promise [Unit ]]): js.Promise [Unit ] = js.native
2020
You can’t perform that action at this time.
0 commit comments