You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this algorithm is wrong then. Above it says it runs “in parallel”, and you can see from both implementations that it’s running on the main thread.
This needs be updated to return a promise rejected with X and the later run the steps in parallel.
We need to investigate if the algorithm and the implementations need to be updated.
The text was updated successfully, but these errors were encountered:
We need to investigate if the algorithm and the implementations need to be updated.
I note that the two algorithms that the spec currently says run "in parallel" must be updated, regardless of whether implementations need to be. As written, they are incorrect: a Promise cannot be resolved/rejected directly within steps that run in parallel. If the steps do run in parallel, then a task must be queued. See guidance in Dealing with the event loop in HTML and in particular "you must not directly access main-thread artifacts from a background thread [...] Doing so would create data races observable to JavaScript code"
As originally posted by @marcoscaceres in #227 (comment):
We need to investigate if the algorithm and the implementations need to be updated.
The text was updated successfully, but these errors were encountered: