(
step: number = 1,
doTick?: (elapsed: number) => void,
tickOptions?: {
processNewMacroTasksSynchronously: boolean;
},
)
| 188 | } |
| 189 | |
| 190 | tickToNext( |
| 191 | step: number = 1, |
| 192 | doTick?: (elapsed: number) => void, |
| 193 | tickOptions?: { |
| 194 | processNewMacroTasksSynchronously: boolean; |
| 195 | }, |
| 196 | ) { |
| 197 | if (this._schedulerQueue.length < step) { |
| 198 | return; |
| 199 | } |
| 200 | // Find the last task currently queued in the scheduler queue and tick |
| 201 | // till that time. |
| 202 | const startTime = this._currentTickTime; |
| 203 | const targetTask = this._schedulerQueue[step - 1]; |
| 204 | this.tick(targetTask.endTime - startTime, doTick, tickOptions); |
| 205 | } |
| 206 | |
| 207 | tick( |
| 208 | millis: number = 0, |
no test coverage detected