W3C home > Mailing lists > Public > public-device-apis@w3.org > July 2015

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

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Thu, 30 Jul 2015 11:29:57 -0400
To: Андрей Логвинов <alogvinov@yandex-team.ru>, Marcos Fábio Pereira <marcos.pereira@signove.com>
Cc: "public-device-apis@w3.org" <public-device-apis@w3.org>
Message-ID: <55BA42F5.5010601@mit.edu>
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

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:54:06 UTC