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

[wake-lock] Abortion is a bit weird (#171)

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
Message-ID: <issues.opened-427798442-1554135802-sysbot+gh@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

This archive was generated by hypermail 2.3.1 : Monday, 1 April 2019 16:23:26 UTC