You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The callback (final argument) is a callback function invoked with the Lock when granted. This is specified by script, and is usually an async function. The lock is held until the callback function completes. If a non-async callback function is passed in, then it is automatically wrapped in a promise that resolves immediately, so the lock is only held for the duration of the synchronous callback.
The returned promise resolves (or rejects) with the result of the callback after the lock is released, or rejects if the request is aborted.
it does look like the class spec describes the present types https://w3c.github.io/web-locks/#lockmanager
but reading the english description of behavior, https://w3c.github.io/web-locks/#api-lock-manager-request
it seems like the baseline should be
which seems to be how the method actually behaves.
The text was updated successfully, but these errors were encountered: