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

Add new sections for priority overriding signal and onpriortychange #12

Merged
merged 2 commits into from
Mar 31, 2020
Merged

Add new sections for priority overriding signal and onpriortychange #12

merged 2 commits into from
Mar 31, 2020

Conversation

shaseley
Copy link
Collaborator

@kenchris: adding text per our discussion on the TAG review thread. Is this example/text reasonably clear?

@natechapin can you PTAL?

@natechapin
Copy link
Collaborator

Looks good, thanks!

@shaseley shaseley merged commit ca1f343 into WICG:master Mar 31, 2020
@shaseley shaseley deleted the priority_override_signal_example branch April 17, 2020 17:49
Similar to how `AbortSignal` has an
[`onabort`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/onabort)
event to listen for a change in abort state, `TaskSignal` supports an
`onprioritychange` event to listen for changes in priority.

Choose a reason for hiding this comment

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

should be prioritychange as I assume that TaskSignal is an EventTarget (it should be) you can call addEventListener('prioritychange') in addition to .onprioritychange = ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants