[screen-wake-lock] sentinel.released boolean (#272)

jakearchibald has just created a new issue for https://github.com/w3c/screen-wake-lock:

== sentinel.released boolean ==
A 'released' event is fired at a sentinel when it's released. However, if the developer wants to know which of their sentinels have been released, they would have to store that themselves in something like a `WeakSet`.

This state could be added to the sentinel itself.

Having this state would also allow `.release()` to shortcut by returning a resolved promise rather than going in-parallel.

Please view or discuss this issue at https://github.com/w3c/screen-wake-lock/issues/272 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 17 August 2020 11:51:22 UTC