MCPcopy Create free account
hub / github.com/denoland/std / runAll

Method runAll

testing/time.ts:774–778  ·  view source on GitHub ↗

* Advances time forward to the next due timer until there are no pending timers remaining. * If the timers create additional timers, they will be run too. If there is an interval, * time will keep advancing forward until the interval is cleared. * * @example Usage * ```ts * import

()

Source from the content-addressed store, hash-verified

772 * ```
773 */
774 runAll() {
775 while (!dueTree.isEmpty()) {
776 this.next();
777 }
778 }
779
780 /**
781 * Advances time forward to the next due timer until there are no pending timers remaining.

Callers 1

time_test.tsFile · 0.80

Calls 2

nextMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected