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 19:58:05 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-304374993-1495828684-sysbot+gh@w3.org>
So definitive feedback from WHATWG folks is roughly to write:

```
1.  [=In parallel=], wait for a a new reading to be available.
    When it is, [=queue a task=] to run the following sub-steps:
    1.  If [[unsecure_stuff_happening]] flag is set, then return.
    1.  Update the [=latest reading=] map.
    1.  Copy to instance cache if that's what we end-up choosing to do.
    1.  Fire a "change" event.
```

So we can get rid of the custom task queue, but not of task queues altogether.

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

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