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

Method onCancelTask

packages/zone.js/lib/zone-spec/wtf.ts:145–161  ·  view source on GitHub ↗
(
      parentZoneDelegate: ZoneDelegate,
      currentZone: Zone,
      targetZone: Zone,
      task: Task,
    )

Source from the content-addressed store, hash-verified

143 }
144
145 onCancelTask(
146 parentZoneDelegate: ZoneDelegate,
147 currentZone: Zone,
148 targetZone: Zone,
149 task: Task,
150 ): any {
151 const key = task.source;
152 let instance = WtfZoneSpec.cancelInstance[key];
153 if (!instance) {
154 instance = WtfZoneSpec.cancelInstance[key] = wtfEvents!.createInstance(
155 `Zone:cancel:${key}(ascii zone, any options)`,
156 );
157 }
158 const retValue = parentZoneDelegate.cancelTask(targetZone, task);
159 instance(zonePathName(targetZone), shallowObj(task.data, 2));
160 return retValue;
161 }
162 }
163
164 function shallowObj(obj: {[k: string]: any} | undefined, depth: number): any {

Callers

nothing calls this directly

Calls 4

zonePathNameFunction · 0.85
shallowObjFunction · 0.85
createInstanceMethod · 0.80
cancelTaskMethod · 0.65

Tested by

no test coverage detected