dillon1000/react
Commit
Browse files [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.
Changed paths5 files
First-parent comparisonpackages/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…