W3C home > Mailing lists > Public > public-device-apis@w3.org > June 2015

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

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

See https://github.com/w3c/sensors/issues/49
Received on Thursday, 11 June 2015 20:12:49 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:54:05 UTC