- From: Tobie Langel via GitHub <sysbot+gh@w3.org>
- Date: Thu, 10 Mar 2016 13:16:08 +0000
- To: public-device-apis@w3.org
re @annevk's [comment](https://github.com/w3c/sensors/issues/88#issuecomment-193304041): > * If you expose "once" as static, passing around instances is less useful. E.g., you might want all your code to use a particular sensor with some settings (accuracy: "high"). If you have to pass that separately in the constructor and the "once" static, reuse is a little harder. This makes sense, though it also appears that you wouldn't be passing the permission request (which is inherently async) as part of this object, which I feel sort of lessens the overall value. > * I think it does matter when you invoke `pause()`. The sensor is likely instantiated "in parallel" (see HTML Standard) so any long-lasting bit of script between instantiation and `pause()` could cause it to start doing things. I imagined "in parallel" implied it would be queued at the end of the current event turn. Isn't that the case? (Genuine question.) -- GitHub Notification of comment by tobie Please view or discuss this issue at https://github.com/w3c/sensors/issues/88#issuecomment-194835977 using your GitHub account
Received on Thursday, 10 March 2016 13:16:10 UTC