MCPcopy Index your code
hub / github.com/continuedev/continue / abort

Function abort

packages/fetch/src/node-fetch-patch.js:96–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94 let response = null;
95
96 const abort = () => {
97 const error = new AbortError("The operation was aborted.");
98 reject(error);
99 if (request.body && request.body instanceof Stream.Readable) {
100 request.body.destroy(error);
101 }
102
103 if (!response || !response.body) {
104 return;
105 }
106
107 response.body.emit("error", error);
108 };
109
110 if (signal && signal.aborted) {
111 abort();

Callers 2

fetchFunction · 0.70
abortAndFinalizeFunction · 0.70

Calls 2

destroyMethod · 0.80
emitMethod · 0.65

Tested by

no test coverage detected