MCPcopy Index your code
hub / github.com/facebook/react / work

Function work

packages/scheduler/src/__tests__/SchedulerMock-test.js:202–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

200 ['D', 100],
201 ];
202 const work = () => {
203 while (tasks.length > 0) {
204 const [label, ms] = tasks.shift();
205 Scheduler.unstable_advanceTime(ms);
206 Scheduler.log(label);
207 if (shouldYield()) {
208 return work;
209 }
210 }
211 };
212
213 // Schedule a high priority callback
214 scheduleCallback(UserBlockingPriority, work);

Callers

nothing calls this directly

Calls 1

scheduleCallbackFunction · 0.50

Tested by

no test coverage detected