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

Prioritized Task Scheduling API #3566

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

daxpedda
Copy link
Collaborator

Implements two proposals:

  • Prioritized Task Scheduling
  • Early detection of input events

Currently only enabled by default in Chromium even though they are in a very early stage of the W3C standardization process.

See:
MDN
Prioritized Task Scheduling draft (Firefox WebIDL)
Early detection of input events draft (Firefox WebIDL)

@daxpedda daxpedda force-pushed the prioritized-task-scheduling-api branch from 1a678f1 to d9d2a64 Compare August 24, 2023 21:37
@daxpedda daxpedda force-pushed the prioritized-task-scheduling-api branch from d9d2a64 to 1465947 Compare August 24, 2023 22:04
@daxpedda daxpedda merged commit 6788a8f into rustwasm:main Aug 25, 2023
25 checks passed
interface TaskController : AbortController {
constructor(optional TaskControllerInit init = {});

undefined setPriority(TaskPriority priority);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I probably should have mentioned this before you merged, but I think this needs to be annotated with [Throws]. I'm not sure why it isn't in Firefox, but the spec says it's supposed to throw if it gets called reentrantly (i.e. inside a prioritychange handler).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My bad, should have waited longer, gonna make a fix momentarily.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for catching that!

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.

2 participants