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

Method runAllAsync

testing/time.ts:806–810  ·  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. * Runs all pending microtasks before each tim

()

Source from the content-addressed store, hash-verified

804 * ```
805 */
806 async runAllAsync() {
807 while (!dueTree.isEmpty()) {
808 await this.nextAsync();
809 }
810 }
811
812 /**
813 * Restores time related global functions to their original state.

Callers 2

retry_test.tsFile · 0.80
time_test.tsFile · 0.80

Calls 2

nextAsyncMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected