New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
be more explicit that jobs always run asynchronously #861
Comments
Also, I am currently switching gecko to always run jobs async since it provides more consistent behavior. |
F2F: Make sure all jobs are scheduled async |
No gecko bug as we have already implemented this. |
I'm sorry, but I'm not sure I agree with the change in spec language. I think scheduling the job should be immediate, but actually executing the job should be asynchronous. I think the "queue a task" language belongs in the "Run Job" algorithm. This also ensures an async step between consecutive jobs in the queue which is important for flushing event runnables and whatnot. |
Move queuing a task step for running a job from each method and Soft Update to Run Job to address #861 (comment)
Yes, that makes sense. Please see if e68be6e satisfies your expectation. Also, I think this note should still be there, right?
Or is it guaranteed the task queued in Run Job is always queued after the task for dispatching the DOMContentLoaded event? |
Previously @mattto stated that Chrome always run jobs asynchronously. The spec is a bit fuzzy on this saying things like:
This suggests that perhaps Register gets to keep running sync and then the current steps are completed potentially in parallel.
I think it would be better for Run Job to explicitly queue a task to invoke the algorithm for the job.
This matters for things like:
The text was updated successfully, but these errors were encountered: