MCPcopy
hub / github.com/angular/angular / resolve

Method resolve

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

setTimeoutFunction · 0.85
thenMethod · 0.65

Tested by

no test coverage detected