MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / onAborted

Function onAborted

out/cli.cjs:60655–60671  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

60653 fetchParams.controller.terminate();
60654 return;
60655 }
60656 if (!fetchParams.controller.controller.desiredSize) {
60657 return;
60658 }
60659 }
60660 };
60661 function onAborted(reason) {
60662 if (isAborted(fetchParams)) {
60663 response.aborted = true;
60664 if (isReadable(stream4)) {
60665 fetchParams.controller.controller.error(
60666 fetchParams.controller.serializedAbortReason
60667 );
60668 }
60669 } else {
60670 if (isReadable(stream4)) {
60671 fetchParams.controller.controller.error(new TypeError("terminated", {
60672 cause: isErrorLike(reason) ? reason : void 0
60673 }));
60674 }

Callers

nothing calls this directly

Calls 5

isAbortedFunction · 0.85
isReadableFunction · 0.85
isErrorLikeFunction · 0.85
errorMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…