Re: [wake-lock] Remove cancel() (#134)

`wakeLockRequest = null` only destroys the reference, it does nothing to the actual WakeLockRequest object.
Garbage collection is implementation-specific and non-deterministic, i.e. there is no guarantee or even a reliable prediction when a particular unreferenced object will be destroyed. This may lead to wake lock being held for longer than needed, or potentially indefinitely.

-- 
GitHub Notification of comment by andrey-logvinov
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/134#issuecomment-444877302 using your GitHub account

Received on Thursday, 6 December 2018 13:52:44 UTC