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

Method resolve

packages/zone.js/lib/common/promise.ts:331–336  ·  view source on GitHub ↗
(value: R)

Source from the content-addressed store, hash-verified

329 }
330
331 static resolve<R>(value: R): Promise<R> {
332 if (value instanceof ZoneAwarePromise) {
333 return value;
334 }
335 return resolvePromise(<ZoneAwarePromise<R>>new this(null as any), RESOLVED, value);
336 }
337
338 static reject<U>(error: U): Promise<U> {
339 return resolvePromise(<ZoneAwarePromise<U>>new this(null as any), REJECTED, error);

Callers 2

raceMethod · 0.95
allWithCallbackMethod · 0.95

Calls 1

resolvePromiseFunction · 0.85

Tested by

no test coverage detected