- From: Tobie Langel via GitHub <sysbot+gh@w3.org>
- Date: Thu, 11 Jun 2015 20:12:47 +0000
- To: public-device-apis@w3.org
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