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

Function zoneify

packages/zone.js/lib/common/promise.ts:614–626  ·  view source on GitHub ↗
(fn: Function)

Source from the content-addressed store, hash-verified

612 api.patchThen = patchThen;
613
614 function zoneify(fn: Function) {
615 return function (self: any, args: any[]) {
616 let resultPromise = fn.apply(self, args);
617 if (resultPromise instanceof ZoneAwarePromise) {
618 return resultPromise;
619 }
620 let ctor = resultPromise.constructor;
621 if (!ctor[symbolThenPatched]) {
622 patchThen(ctor);
623 }
624 return resultPromise;
625 };
626 }
627
628 if (NativePromise) {
629 patchThen(NativePromise);

Callers 1

patchPromiseFunction · 0.85

Calls 2

patchThenFunction · 0.85
applyMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…