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

Function onAbort

packages/zone.js/lib/common/events.ts:668–668  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

666 // primarily used for preventing strong references cycles. `onAbort` is always reachable
667 // as it's an event listener, so its closure retains a strong reference to the `task`.
668 const onAbort = () => task.zone.cancelTask(task);
669 nativeListener.call(signal, 'abort', onAbort, {once: true});
670 // We need to remove the `abort` listener when the event listener is going to be removed,
671 // as it creates a closure that captures `task`. This closure retains a reference to the

Callers

nothing calls this directly

Calls 1

cancelTaskMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…