(deadline)
| 155 | let deletions = null |
| 156 | |
| 157 | function workLoop(deadline) { |
| 158 | let shouldYield = false |
| 159 | while (nextUnitOfWork && !shouldYield) { |
| 160 | nextUnitOfWork = performUnitOfWork( |
| 161 | nextUnitOfWork |
| 162 | ) |
| 163 | shouldYield = deadline.timeRemaining() < 1 |
| 164 | } |
| 165 | |
| 166 | if (!nextUnitOfWork && wipRoot) { |
| 167 | commitRoot() |
| 168 | } |
| 169 | |
| 170 | requestIdleCallback(workLoop) |
| 171 | } |
| 172 | |
| 173 | requestIdleCallback(workLoop) |
| 174 |
nothing calls this directly
no test coverage detected