w3c / sensors

Generic Sensor API
https://www.w3.org/TR/generic-sensor/
Other
127 stars 59 forks source link

start() to return a cancellable promise that resolves on first reading #94

Closed tobie closed 8 years ago

tobie commented 8 years ago

The start() method needs to return a promise that resolves on first reading. It's unclear right now whether stop() also needs to return a promise or can be sync (I feel it's the latter).

Depends on https://github.com/promises-aplus/cancellation-spec/issues/6.

tobie commented 8 years ago

In https://github.com/w3c/sensors/issues/104#issuecomment-248316955 we decided to drop promises.