MCPcopy
hub / github.com/nuxt/nuxt / onAbort

Function onAbort

packages/nuxt/src/app/composables/asyncData.ts:933–941  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

931 }
932
933 const onAbort = () => {
934 const abortedSignal = list.find(s => s.aborted)
935 const reason = abortedSignal?.reason ?? new DOMException('Aborted', 'AbortError')
936 try {
937 controller.abort(reason)
938 } catch {
939 controller.abort()
940 }
941 }
942
943 for (const sig of list) {
944 sig.addEventListener?.('abort', onAbort, { once: true, signal: cleanupSignal })

Callers

nothing calls this directly

Calls 1

abortMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…