MCPcopy Index your code
hub / github.com/angular/angular / guard4

Function guard4

packages/router/test/integration/guards.spec.ts:2440–2444  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2438 tap(() => guardDone.push('guard3')),
2439 );
2440 const guard4: CanActivateFn = () =>
2441 of(true).pipe(
2442 switchMap((v) => new Promise((r) => setTimeout(r, 6)).then(() => v)),
2443 tap(() => guardDone.push('guard4')),
2444 );
2445 const router = TestBed.inject(Router);
2446 router.resetConfig([
2447 {

Callers

nothing calls this directly

Calls 3

setTimeoutFunction · 0.85
thenMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…