- From: Kenneth Rohde Christiansen via GitHub <sysbot+gh@w3.org>
- Date: Mon, 01 Apr 2019 16:23:24 +0000
- To: public-device-apis-log@w3.org
kenchris has just created a new issue for https://github.com/w3c/wake-lock: == Abortion is a bit weird == cc @slightlyoff Currently you can cancel using `AbortSignal`, at any time basically, even after `request()` has resolved. I find that a bit confusing. We would like to be able to cancel a specific wake lock (they are refcounted) or all of that type. Another option would be to have a `release()` method on each `WakeLock` instance, potentially with an argument to release all types of that wake lock in use by the current page. Then you can always create a new WakeLock instance and cancel all. Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/171 using your GitHub account
Received on Monday, 1 April 2019 16:23:25 UTC