#827: Early design review: scheduler.yield()
Discussions
2023-04-tokyo
Concerns about multi-stakeholder commitement to the underlying model.
Left feedback about intention of options params (e.g. can it be implemented without the rest of the scheduler changes?), and conflict with abort signal naming.
2023-07-mos-eisley
Tess and Peter left feedback in April and have received no response. Closed as satisfied with concerns.
OpenedMar 22, 2023
こんにちは 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:
We'd prefer the TAG provide feedback as (please delete all but the desired option):
🐛 open issues in our GitHub repo for each point of feedback