MCPcopy
hub / github.com/di-sukharev/opencommit / abort

Function abort

out/cli.cjs:6957–6965  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6955 const signal = request3.signal;
6956 let response = null;
6957 const abort = function abort2() {
6958 let error = new AbortError2("The user aborted a request.");
6959 reject(error);
6960 if (request3.body && request3.body instanceof Stream3.Readable) {
6961 destroyStream(request3.body, error);
6962 }
6963 if (!response || !response.body) return;
6964 response.body.emit("error", error);
6965 };
6966 if (signal && signal.aborted) {
6967 abort();
6968 return;

Callers 11

fetch4Function · 0.85
abortAndFinalizeFunction · 0.85
iterateFunction · 0.85
terminatorFunction · 0.85
onConnectMethod · 0.85
addSignalFunction · 0.85
onHeadersMethod · 0.85
constructorMethod · 0.85
onConnectMethod · 0.85
onConnectFunction · 0.85
cli.cjsFile · 0.85

Calls 8

rejectFunction · 0.85
destroyStreamFunction · 0.85
cleanFunction · 0.85
emitMethod · 0.45
forEachMethod · 0.45
keysMethod · 0.45
abortMethod · 0.45
onErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…