MCPcopy
hub / github.com/angular/angular / resolveAfter

Function resolveAfter

packages/router/test/bootstrap.spec.ts:512–518  ·  view source on GitHub ↗
(milliseconds: number)

Source from the content-addressed store, hash-verified

510 class TestModule {}
511
512 function resolveAfter(milliseconds: number) {
513 return new Promise<void>((resolve) => {
514 setTimeout(() => {
515 resolve();
516 }, milliseconds);
517 });
518 }
519
520 const res = await platformBrowser([]).bootstrapModule(TestModule);
521 const router = res.injector.get(Router);

Callers 1

bootstrap.spec.tsFile · 0.85

Calls 2

setTimeoutFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…