W3C home > Mailing lists > Public > public-device-apis-log@w3.org > July 2017

[sensors] Should a Sensor instance be deactivated/stopped when being garbage collected?

From: Martijn Thé via GitHub <sysbot+gh@w3.org>
Date: Wed, 26 Jul 2017 12:30:28 +0000
To: public-device-apis-log@w3.org
Message-ID: <issues.opened-245706262-1501072226-sysbot+gh@w3.org>
martijnthe has just created a new issue for https://github.com/w3c/sensors:

== Should a Sensor instance be deactivated/stopped when being garbage collected? ==
I'm assuming "yes", because otherwise the sensor would stay active indefinitely, keep firing event handlers and the script code would have no means to stop it.

It would be nice to make this explicit in the [lifecycle diagram] of the spec.

cc @jiangzidong

[lifecycle diagram]: https://www.w3.org/TR/generic-sensor/#sensor-lifecycle

Please view or discuss this issue at https://github.com/w3c/sensors/issues/246 using your GitHub account
Received on Wednesday, 26 July 2017 12:30:28 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 12:18:53 UTC