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

Function guard3

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

Source from the content-addressed store, hash-verified

2433 );
2434 const guard2: CanActivateFn = () => of(true).pipe(tap(() => guardDone.push('guard2')));
2435 const guard3: CanActivateFn = () =>
2436 of(true).pipe(
2437 switchMap((v) => new Promise((r) => setTimeout(r, 2)).then(() => v)),
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)),

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…