()
| 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); |
nothing calls this directly
no test coverage detected