(to: Ticks)
| 176 | } |
| 177 | |
| 178 | private async _runTo(to: Ticks) { |
| 179 | to = Math.ceil(to) as Ticks; |
| 180 | |
| 181 | if (this._now.ticks > to) |
| 182 | return; |
| 183 | |
| 184 | let firstException: Error | undefined; |
| 185 | while (true) { |
| 186 | const result = await this._callFirstTimer(to); |
| 187 | if (!result.timerFound) |
| 188 | break; |
| 189 | firstException = firstException || result.error; |
| 190 | } |
| 191 | |
| 192 | this._advanceNow(to); |
| 193 | |
| 194 | if (firstException) |
| 195 | throw firstException; |
| 196 | } |
| 197 | |
| 198 | async pauseAt(time: number): Promise<number> { |
| 199 | this._replayLogOnce(); |
no test coverage detected