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

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