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

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.

-Boris

Received on Thursday, 30 July 2015 15:30:29 UTC