[wake-lock] Make WakeLock constructable (#154)

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

== Make WakeLock constructable ==
I would like to know if people also think this is a good idea or not.

- This is more aligned with Generic Sensors and other newer APIs
- The async operations can be moved to `request()`
- We need to move async operations to `request()` anyway if we want to prompt in the future
- We can inherit from a generic `WakeLock` object and create `ScreenWakeLock` and `SystemWakeLock`

@domenic @reillyeon @tomayac @anssiko 

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

Received on Thursday, 7 March 2019 16:39:34 UTC