MCPcopy
hub / github.com/angular/angular / trueIn2Seconds

Function trueIn2Seconds

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

Source from the content-addressed store, hash-verified

834 return true;
835 };
836 const trueIn2Seconds = () => {
837 log.push('trueIn2Seconds-start');
838 return new Promise<boolean>((res) => {
839 setTimeout(() => {
840 log.push('trueIn2Seconds-end');
841 res(true);
842 }, 20);
843 });
844 };
845 router.resetConfig([
846 {path: 'a', component: SimpleCmp, canActivate: [trueRightAway, trueIn2Seconds]},
847 {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

Used in the wild real call sites across dependent graphs

searching dependent graphs…