MCPcopy
hub / github.com/angular/angular / runGuarded

Method runGuarded

packages/zone.js/lib/zone-impl.ts:219–219  ·  view source on GitHub ↗

* Invokes a function in a given zone and catches any exceptions. * * Any exceptions thrown will be forwarded to [Zone.HandleError]. * * The invocation of `callback` can be intercepted by declaring [ZoneSpec.onInvoke]. The * handling of exceptions can be intercepted by declaring [ZoneS

(callback: Function, applyThis?: any, applyArgs?: any[], source?: string)

Source from the content-addressed store, hash-verified

217 * @returns {any} Value from the `callback` function.
218 */
219 runGuarded<T>(callback: Function, applyThis?: any, applyArgs?: any[], source?: string): T;
220
221 /**
222 * Execute the Task by restoring the [Zone.currentTask] in the Task's zone.

Callers 15

eventCallbackMethod · 0.65
ng_zone_spec.tsFile · 0.65
commonTestsFunction · 0.65
runGuardedMethod · 0.65
wrapMethod · 0.65
patchBluebirdFunction · 0.65
patchErrorFunction · 0.65
patchPromiseFunction · 0.65
runInTestZoneFunction · 0.65
browser.spec.tsFile · 0.65
bluebird.spec.tsFile · 0.65

Implementers 1

ZoneImplpackages/zone.js/lib/zone-impl.ts

Calls

no outgoing calls

Tested by

no test coverage detected