MCPcopy
hub / github.com/angular/angularfire / run

Function run

src/zones.ts:105–109  ·  view source on GitHub ↗
(fn: (...args: any[]) => T)

Source from the content-addressed store, hash-verified

103}
104
105function run<T>(fn: (...args: any[]) => T): T {
106 const ngZone = inject(NgZone, { optional: true });
107 if (!ngZone) {return fn();}
108 return ngZone.run(() => fn());
109}
110
111const zoneWrapFn = (
112 it: (...args: any[]) => any,

Callers 2

zoneWrapFnFunction · 0.85
ɵzoneWrapFunction · 0.85

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected