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

Method run

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

* Invokes a function in a given zone. * * The invocation of `callback` can be intercepted by declaring [ZoneSpec.onInvoke]. * * @param callback The function to invoke. * @param applyThis * @param applyArgs * @param source A unique debug location of the API being invoked. * @r

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

Source from the content-addressed store, hash-verified

201 * @returns {any} Value from the `callback` function.
202 */
203 run<T>(callback: Function, applyThis?: any, applyArgs?: any[], source?: string): T;
204
205 /**
206 * Invokes a function in a given zone and catches any exceptions.

Callers 15

executeMethod · 0.65
constructorMethod · 0.65
constructorMethod · 0.65
setIntervalFunction · 0.65
scheduleScrollEventMethod · 0.65
counting-zone.jsFile · 0.65
patchResizeObserverFunction · 0.65
patchBrowserFunction · 0.65

Implementers 1

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

Calls

no outgoing calls

Tested by 8

funcFunction · 0.52
testDuplicateFunction · 0.52
testAddRemoveFunction · 0.52
testDifferentFunction · 0.52
asyncTestFunction · 0.52
testFnFunction · 0.52
testFnFunction · 0.52