* Advances time to when the next scheduled timer is due. * If there are no pending timers, time will not be changed. * * @example Usage * ```ts * import { FakeTime } from "@std/testing/time"; * import { assert, assertEquals } from "@std/assert"; * * const fakeTime = new FakeT
()
| 711 | * @returns `true` when there is a scheduled timer and `false` when there is not. |
| 712 | */ |
| 713 | next(): boolean { |
| 714 | const next = nextDueNode(); |
| 715 | if (next) this.now = next.due; |
| 716 | return !!next; |
| 717 | } |
| 718 | |
| 719 | /** |
| 720 | * Runs all pending microtasks then advances time to when the next scheduled timer is due. |
no test coverage detected