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

Method onInvokeTask

packages/zone.js/lib/zone-spec/proxy.ts:217–241  ·  view source on GitHub ↗
(
    parentZoneDelegate: ZoneDelegate,
    currentZone: Zone,
    targetZone: Zone,
    task: Task,
    applyThis: any,
    applyArgs: any,
  )

Source from the content-addressed store, hash-verified

215 }
216
217 onInvokeTask(
218 parentZoneDelegate: ZoneDelegate,
219 currentZone: Zone,
220 targetZone: Zone,
221 task: Task,
222 applyThis: any,
223 applyArgs: any,
224 ): any {
225 if (task.type !== 'eventTask') {
226 this.removeFromTasks(task);
227 }
228 this.tryTriggerHasTask(parentZoneDelegate, currentZone, targetZone);
229 if (this._delegateSpec && this._delegateSpec.onInvokeTask) {
230 return this._delegateSpec.onInvokeTask(
231 parentZoneDelegate,
232 currentZone,
233 targetZone,
234 task,
235 applyThis,
236 applyArgs,
237 );
238 } else {
239 return parentZoneDelegate.invokeTask(targetZone, task, applyThis, applyArgs);
240 }
241 }
242
243 onCancelTask(
244 parentZoneDelegate: ZoneDelegate,

Callers

nothing calls this directly

Calls 3

removeFromTasksMethod · 0.95
tryTriggerHasTaskMethod · 0.95
invokeTaskMethod · 0.65

Tested by

no test coverage detected