dillon1000/react

Commit

[Scheduler] Always yield to native macro tasks when a virtual task completes (#31787)

As an alternative to #31784.

We should really just always yield each virtual task to a native task.
So that it's 1:1 with native tasks. This affects when microtasks within
each task happens. This brings us closer to native `postTask` semantics
which makes it more seamless to just use that when available.

This still doesn't yield when a task expires to protect against
starvation.
Browse files
Changed paths5 files
First-parent comparison
M packages/scheduler/src/SchedulerFeatureFlags.js ModifiedM packages/scheduler/src/__tests__/Scheduler-test.js ModifiedM packages/scheduler/src/__tests__/SchedulerSetImmediate-test.js ModifiedM packages/scheduler/src/forks/Scheduler.js ModifiedM packages/scheduler/src/forks/SchedulerFeatureFlags.www.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…