MCPcopy Create free account
hub / github.com/angular/angular / resolveAfter

Function resolveAfter

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

Source from the content-addressed store, hash-verified

502 class TestModule {}
503
504 function resolveAfter(milliseconds: number) {
505 return new Promise<void>((resolve) => {
506 setTimeout(() => {
507 resolve();
508 }, milliseconds);
509 });
510 }
511
512 const res = await platformBrowser([]).bootstrapModule(TestModule);
513 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