Re: [w3c/FileAPI] Race condition in Introduction example (#48)

The example should not have any race conditions. The actual spec for the readAsText operation (and all the other read operations) queues tasks for all the various conditions that could trigger events. So a spec-compliant implementation should never fire these events until after the event loop has processed tasks (which won't happen until all synchronous code has finished running, micro tasks have processed, etc).

-- 
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/FileAPI/issues/48#issuecomment-241833605

Received on Tuesday, 23 August 2016 18:42:09 UTC