Re: Trying to understand the Promise usage in the battery API


> On 30 Jul 2015, at 18:29, Boris Zbarsky <bzbarsky@MIT.EDU> wrote:
> 
> On 7/30/15 11:11 AM, Андрей Логвинов wrote:
>> The spec says the browser must run those tasks as soon as the relevant
>> battery state change is detected (e.g. by listening to operating system
>> events), so this is anyway the most current information the browser can
>> provide.
> 
> It's the difference between providing the state as of the last event and the state as of the completion of the query you start when the state is asked for.  It's not a big deal, I guess, as long as the OS events fire sufficiently expeditiously.

Please let us know if you think we could clarify this in the spec prose, or whether the current text is sufficient.

Thanks,

-Anssi

Received on Thursday, 20 August 2015 13:02:09 UTC