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

Method resolve

packages/router/test/regression_integration.spec.ts:338–343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

336 @Injectable()
337 class DelayedResolve {
338 resolve() {
339 return of('').pipe(
340 switchMap((v) => new Promise((r) => setTimeout(r, 10)).then(() => v)),
341 mapTo(true),
342 );
343 }
344 }
345 @Component({
346 selector: 'root-cmp',

Callers

nothing calls this directly

Calls 2

setTimeoutFunction · 0.85
thenMethod · 0.65

Tested by

no test coverage detected