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

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