Skip to content
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

[Spec] Fix the abort steps in promise handling #1300

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

qingxinwu
Copy link
Collaborator

@qingxinwu qingxinwu commented Oct 10, 2024

I thought the "abort these steps" for a component auction only aborted the steps for that component auction. But since all component auctions' steps are added to the same queue (which has a single algorithm queue that all steps are added to and then run in series), so the "abort these steps" may mean abort all component auctions' steps, at least it's ambiguous. It's different from what we wanted it say.
This is just a quick fix to let the algorithm match our intention and be less ambiguous. We may want to change the parallel queue to just "in parallel", or multiple queues, to let component auctions run simultaneously, but that needs further consideration and more care about how to deal race conditions.


Preview | Diff

@qingxinwu qingxinwu added the spec Relates to the spec label Oct 10, 2024
@qingxinwu
Copy link
Collaborator Author

@morlovich @brusshamilton how about this to make the promise failure handling less ambiguous?

Copy link
Collaborator

@morlovich morlovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, that's a nice way of doing this

@JensenPaul JensenPaul merged commit a5912c0 into WICG:main Oct 11, 2024
2 checks passed
github-actions bot added a commit that referenced this pull request Oct 11, 2024
SHA: a5912c0
Reason: push, by JensenPaul

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@qingxinwu qingxinwu deleted the promise branch October 11, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec Relates to the spec
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants