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

Method runGuarded

packages/core/src/zone/ng_zone.ts:264–266  ·  view source on GitHub ↗

* Same as `run`, except that synchronous errors are caught and forwarded via `onError` and not * rethrown.

(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[])

Source from the content-addressed store, hash-verified

262 * rethrown.
263 */
264 runGuarded<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[]): T {
265 return (this as any as NgZonePrivate)._inner.runGuarded(fn, applyThis, applyArgs);
266 }
267
268 /**
269 * Executes the `fn` function synchronously in Angular's parent zone and returns value returned by

Callers

nothing calls this directly

Implementers 1

NoopNgZonepackages/core/src/zone/ng_zone.ts

Calls 1

runGuardedMethod · 0.65

Tested by

no test coverage detected