Re: [sensors] Call 'onchange' on a Senor instance considering its own frequency hint

> Is missing from this resolution is what I pointed out in #209 (comment). That is: does an update to the shared reading trigger each sensor to check if it's time for them to update their own client with a new reading, or does each sensor simply poll the shared reading at regular intervals?

The first, once shared reading is updated each of the Sensor instances either sends updates immediately or schedules update sending.

> In the former, what happens if no new reading arrives in the shared buffer before the time interval of a given sensor elapses.

Nothing, in this case continue waiting for shared reading update and notify immediately

Please see https://github.com/w3c/sensors/pull/210

-- 
GitHub Notification of comment by pozdnyakov
Please view or discuss this issue at https://github.com/w3c/sensors/issues/152#issuecomment-304248682 using your GitHub account

Received on Friday, 26 May 2017 10:32:54 UTC