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 review for scheduler.yield() #966

Open
shaseley opened this issue Jun 6, 2024 · 0 comments
Open

Spec review for scheduler.yield() #966

shaseley opened this issue Jun 6, 2024 · 0 comments

Comments

@shaseley
Copy link

shaseley commented Jun 6, 2024

こんにちは TAG-さん!

I'm requesting a TAG review of scheduler.yield().

scheduler.yield() is an API for yielding control to the browser's event loop, which can be used to break up long tasks. Awaiting the promise returned by scheduler.yield() causes the current task to yield, continuing in a new browser task. This can be used to improve responsiveness issues caused by long tasks. Continuations are prioritized to mitigate performance problems of existing alternatives.

Further details:

  • [X ] I have reviewed the TAG's Web Platform Design Principles
  • Relevant time constraints or deadlines: We're hoping to ship this soon, pending feedback.
  • The group where the work on this specification is currently being done: WICG
  • The group where standardization of this work is intended to be done (if current group is a community group or other incubation venue): WHATWG
  • Major unresolved issues with or opposition to this specification:
  • This work is being funded by: Google

You should also know that...

  • The API has not substantially changed since the early design review
  • The feature builds on scheduler.postTask(), previously reviewed here
  • Because of the above, a "bigger picture" explainer was requested in the early design review, which can now be found here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant