W3C home > Mailing lists > Public > public-device-apis-log@w3.org > June 2019

Re: [wake-lock] Handling WakeLock.request() promises in parallel steps (#222)

From: Raphael Kubo da Costa via GitHub <sysbot+gh@w3.org>
Date: Tue, 25 Jun 2019 10:37:04 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-505387848-1561459023-sysbot+gh@w3.org>
In Blink I ended up just checking if `type` is _"screen"_ and aborting if the page is not visible during those parallel steps, as if it were part of the "abort when" bit. A more generalized approach could maybe have a temporary list of promises that gets moved to `[[ActiveLocks]]` in the last step.

GitHub Notification of comment by rakuco
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/222#issuecomment-505387848 using your GitHub account
Received on Tuesday, 25 June 2019 10:37:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:34:28 UTC