-
Notifications
You must be signed in to change notification settings - Fork 45
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 TaskSignal.any() #72
Conversation
This adds TaskSignal.any(), which builds off of the algorithms being added for AbortSignal.any(). Unlike the abort component, each composite TaskSignal can have only one parent (for priority). This does a similar optimization in that dependent signals are put on non-composite nodes.
@domenic would you mind reviewing this too? It mirrors the |
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.
LGTM with nits
This reverts commit 1e87841.
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!
Specialization of
AbortSignal.any()
for TaskSignal.any(). It supports creating a composite signal with multiple abort sources and either a fixed priority or single priority source. The spec is similar toAbortSignal.any()
and uses the internal constructor for the abort aspect.Tests: https://github.com/web-platform-tests/wpt/tree/master/scheduler (task-signal-any*).
Preview | Diff