(currentTime: number)
| 125 | } |
| 126 | |
| 127 | function handleTimeout(currentTime: number) { |
| 128 | isHostTimeoutScheduled = false; |
| 129 | advanceTimers(currentTime); |
| 130 | |
| 131 | if (!isHostCallbackScheduled) { |
| 132 | if (peek(taskQueue) !== null) { |
| 133 | isHostCallbackScheduled = true; |
| 134 | requestHostCallback(); |
| 135 | } else { |
| 136 | const firstTimer = peek(timerQueue); |
| 137 | if (firstTimer !== null) { |
| 138 | requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); |
| 139 | } |
| 140 | } |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | function flushWork(initialTime: number) { |
| 145 | if (enableProfiling) { |
nothing calls this directly
no test coverage detected