MCPcopy Create free account
hub / github.com/angular/angular / onAbort

Function onAbort

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

Source from the content-addressed store, hash-verified

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