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

Function resolveAfter

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

Source from the content-addressed store, hash-verified

509 class TestModule {}
510
511 function resolveAfter(milliseconds: number) {
512 return new Promise<void>((resolve) => {
513 setTimeout(() => {
514 resolve();
515 }, milliseconds);
516 });
517 }
518
519 const res = await platformBrowser([]).bootstrapModule(TestModule);
520 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