Re: [w3c/IndexedDB] Race condition registering event handlers for requests? (#233)

I don't think so because according to [[1]](https://w3c.github.io/IndexedDB/#asynchronously-execute-a-request) each request goes into a queue [[2]](https://html.spec.whatwg.org/multipage/webappapis.html#queue-a-task) for an event loop [[3]](https://html.spec.whatwg.org/multipage/webappapis.html#event-loop) with a task queue [[4]](https://html.spec.whatwg.org/multipage/webappapis.html#task-queue).

There is a number of excellent resources that describe how JavaScript event loops work on the browser such as [[5]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/EventLoop), [[6]](https://blog.sessionstack.com/how-javascript-works-event-loop-and-the-rise-of-async-programming-5-ways-to-better-coding-with-2f077c4438b5), and [others (7)](https://www.google.com/search?q=web+event+loop). Node.js event loop is very similar, excellent resource at [[8]](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/) along with [others (9)](https://www.google.com/search?ei=JPGyWtmaA4zy5gLUgY3wBw). Also looks like a really nice video at [[10]](https://www.youtube.com/watch?v=8aGhZQkoFbQ).

I hope this is enough information to clear up the questions raised, please speak up if you have any more questions.

[1] <https://w3c.github.io/IndexedDB/#asynchronously-execute-a-request>
[2] <https://html.spec.whatwg.org/multipage/webappapis.html#queue-a-task>
[3] <https://html.spec.whatwg.org/multipage/webappapis.html#event-loop>
[4] <https://html.spec.whatwg.org/multipage/webappapis.html#task-queue>
[5] <https://developer.mozilla.org/en-US/docs/Web/JavaScript/EventLoop>
[6] <https://blog.sessionstack.com/how-javascript-works-event-loop-and-the-rise-of-async-programming-5-ways-to-better-coding-with-2f077c4438b5>
[7] <https://www.google.com/search?q=web+event+loop>
[8] <https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/>
[9] <https://www.google.com/search?ei=JPGyWtmaA4zy5gLUgY3wBw>
[10] <https://www.youtube.com/watch?v=8aGhZQkoFbQ>

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/233#issuecomment-375135683

Received on Thursday, 22 March 2018 00:06:13 UTC