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

Re: [wake-lock] WakeLock.request() returns a promise that never resolves (#226)

From: Reilly Grant via GitHub <sysbot+gh@w3.org>
Date: Wed, 07 Aug 2019 18:00:48 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-519206211-1565200847-sysbot+gh@w3.org>
The problem with resolving the Promise when the lock is acquired is that it removes the only way we have to signal that the lock has been revoked by the UA. It sounds like you want to revert back to a more complex WakeLock object which dispatches an event when the lock state changes.

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/226#issuecomment-519206211 using your GitHub account
Received on Wednesday, 7 August 2019 18:00:49 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 August 2019 18:00:50 UTC