[battery] BatteryManager: Describe instance creation in an algorithm (#48)

rakuco has just created a new issue for https://github.com/w3c/battery:

== BatteryManager: Describe instance creation in an algorithm ==
This came up in #46 (specifically, [here](https://github.com/w3c/battery/pull/46#pullrequestreview-746552365)).  @marcoscaceres says:

> yeah, let's do that as followup... fwiw, I'm imagining this prose need to go into some initializer steps... as an example:
> https://w3c.github.io/geolocation-api/#constructing-a-geolocationposition

Right now it is not very clear what should happen when a new `BatteryManager` is created: when exactly do the internal slots have their initial values set (vs when do we start checking)? When do we send the first event?

Please view or discuss this issue at https://github.com/w3c/battery/issues/48 using your GitHub account


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

Received on Tuesday, 7 September 2021 08:21:05 UTC