Closed saschanaz closed 3 years ago
https://wicg.github.io/web-locks/#process-the-lock-request-queue
Enqueue the following steps on callback’s relevant settings object's responsible event loop: Let r be the result of invoking callback with a new Lock object associated with lock as the only argument. Resolve waiting with r.
But there is no variable named callback in this algorithm. I guess each request needs to store its callback in it.
callback
Yep - likely a refactor didn't capture that.
https://wicg.github.io/web-locks/#process-the-lock-request-queue
But there is no variable named
callback
in this algorithm. I guess each request needs to store its callback in it.