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

Re: [sensors] Use simple event dispatch mechanism instead of task source (queued)

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Fri, 26 May 2017 13:09:40 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-304278397-1495804179-sysbot+gh@w3.org>
OK, so after discussing this in #whatwg, it seems that whole Update Reading algorithm should happen in a new task, so we avoid updating the shared buffer in the middle of a script being processed, in which case, `gyro.x === gyro.x` wouldn't be guaranteed to always return `true`.

Once in this task, however, we could continue firing the events directly (as we now do).

GitHub Notification of comment by tobie
Please view or discuss this issue at https://github.com/w3c/sensors/issues/215#issuecomment-304278397 using your GitHub account
Received on Friday, 26 May 2017 13:09:47 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:54 UTC