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

Function trueIn2Seconds

packages/router/test/integration/navigation.spec.ts:824–832  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

822 return true;
823 };
824 const trueIn2Seconds = () => {
825 log.push('trueIn2Seconds-start');
826 return new Promise<boolean>((res) => {
827 setTimeout(() => {
828 log.push('trueIn2Seconds-end');
829 res(true);
830 }, 20);
831 });
832 };
833 router.resetConfig([
834 {path: 'a', component: SimpleCmp, canActivate: [trueRightAway, trueIn2Seconds]},
835 {path: 'b', component: SimpleCmp, canActivate: [trueRightAway, trueIn2Seconds]},

Callers

nothing calls this directly

Calls 2

setTimeoutFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected