MCPcopy Create free account
hub / github.com/TanStack/ai / onAbort

Function onAbort

examples/ts-react-chat/src/routes/api.structured-output.ts:355–355  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

353
354 const abortController = new AbortController()
355 const onAbort = () => abortController.abort()
356 request.signal.addEventListener('abort', onAbort, { once: true })
357 if (request.signal.aborted) {
358 onAbort()

Callers 1

Calls 1

abortMethod · 0.65

Tested by

no test coverage detected