[sensors] Is a Promise-returning, "oneshot" method useful?

tobie has just created a new issue for https://github.com/w3c/sensors:

== Is a Promise-returning, "oneshot" method useful? ==
This would be spec'ed along the lines of:

```
partial interface Sensor {
  Promise<SensorReading> oneshot(SensorInit sensorInitDic);
}
```
Useful when only a single reading is necessary (e.g. for certain 
geoloc usecases).

Rather easy to implement in JS on top of the existing primitives, but 
might enable some performance gains that would be unavailable 
otherwise.

See https://github.com/w3c/sensors/issues/49

Received on Thursday, 11 June 2015 20:12:49 UTC