-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Add signal to request #39290
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
Add signal to request #39290
Conversation
|
Heads up! This PR modifies the following files:
|
|
🔨 Triggering try run (#17700801139) for Linux (WPT) |
41c264b to
b64491d
Compare
|
|
|
fwiw, https://doc.rust-lang.org/std/collections/struct.BTreeSet.html is documented as being an ordered set. |
|
Thanks for linking! Unfortunately that would require to implement |
b64491d to
2979270
Compare
|
🔨 Triggering try run (#17707314783) for Linux (WPT) |
|
|
2979270 to
bb252a4
Compare
|
🔨 Triggering try run (#17707934070) for Linux (WPT) |
|
Test results for linux-wpt from try job (#17707934070): Flaky unexpected result (11)
Stable unexpected results that are known to be intermittent (28)
Stable unexpected results (5)
|
|
|
bb252a4 to
2c96af2
Compare
2c96af2 to
3113ba1
Compare
3113ba1 to
5564d53
Compare
|
🔨 Triggering try run (#17761634517) for Linux (WPT) |
|
|
| ) -> DomRoot<AbortSignal> { | ||
| // The static any(signals) method steps are to return the result | ||
| // of creating a dependent abort signal from signals using AbortSignal and the current realm. | ||
| Self::create_dependent_abort_signal(signals, global, can_gc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for implementing Any. I was working on this in #36936, so it would be good to check to avoid duplicate work in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I asked @jdm if you folks weren't working on it, as I indeed wanted to avoid duplicate work. He said that you weren't, but I wasn't aware that you were continuing on it in a different ticket.
5564d53 to
19abf06
Compare
|
🔨 Triggering try run (#17774205386) for Linux (WPT) |
|
Test results for linux-wpt from try job (#17774205386): Flaky unexpected result (16)
Stable unexpected results that are known to be intermittent (31)
|
|
✨ Try run (#17774205386) succeeded. |
19abf06 to
89717b1
Compare
The signal taken from the requestinit is now passed into the request object with the relevant steps. I added all spec comments to this method, as I had trouble figuring out which steps I had to add. This required implementing the algorithm to create dependent signals, which is used in the `any()` method. So that's now implemented as well. All of that required the machinery to have dependent and source signals on an AbortSignal. It uses an FxHashSet as the spec requires it to be an ordered set. I don't think FxHashSet implements ordering, but at least it is a set. Part of servo#34866 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
89717b1 to
3fd52b9
Compare
|
Cool, finally all green. Made a bit of a mess with the crown syntax |
The signal taken from the requestinit is now passed into
the request object with the relevant steps. I added all
spec comments to this method, as I had trouble figuring
out which steps I had to add.
This required implementing the algorithm to create
dependent signals, which is used in the
any()method.So that's now implemented as well.
All of that required the machinery to have dependent and
source signals on an AbortSignal. It uses an IndexSet
as the spec requires it to be an ordered set.
Part of #34866