MCPcopy
hub / github.com/angular/angular / reject

Method reject

packages/zone.js/lib/common/promise.ts:338–340  ·  view source on GitHub ↗
(error: U)

Source from the content-addressed store, hash-verified

336 }
337
338 static reject<U>(error: U): Promise<U> {
339 return resolvePromise(<ZoneAwarePromise<U>>new this(null as any), REJECTED, error);
340 }
341
342 static withResolvers<T>(): {
343 promise: Promise<T>;

Callers 15

executeScriptMethod · 0.45
provider_spec.tsFile · 0.45
readMethod · 0.45
checkForUpdateMethod · 0.45
activateUpdateMethod · 0.45
requestSubscriptionMethod · 0.45
unsubscribeMethod · 0.45
completeMethod · 0.45
abortFunction · 0.45

Calls 1

resolvePromiseFunction · 0.85

Tested by 1