W3C home > Mailing lists > Public > public-device-apis-log@w3.org > May 2017

[sensors] Define algorithm for suspending / resuming activated sensor objects

From: Alexander Shalamov via GitHub <sysbot+gh@w3.org>
Date: Sat, 27 May 2017 11:15:26 +0000
To: public-device-apis-log@w3.org
Message-ID: <issues.opened-231794829-1495883725-sysbot+gh@w3.org>
alexshalamov has just created a new issue for https://github.com/w3c/sensors:

== Define algorithm for suspending / resuming activated sensor objects ==
Would be good to have algorithm for suspending / resuming activated sensor objects, so that suspended sensor will not add new tasks to the queue (and cancel pending?). This algorithm can be used from e.g., visibility, focus hooks. At the moment, spec uses ‘disable task source’ term, there is no such concept and it would be better to define algorithm that would be suitable for Sensors.
 
Also, would good to define what happens if error occurs when sensor is suspended, should we create task for changing state to idle or we create that task when sensor is ‘resumed’?

Please view or discuss this issue at https://github.com/w3c/sensors/issues/217 using your GitHub account
Received on Saturday, 27 May 2017 11:15:32 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 12:18:53 UTC