MCPcopy Index your code
hub / github.com/coder/mux / onAbort

Method onAbort

src/node/runtime/sshConnectionPool.ts:557–562  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

555 let aborted = false;
556
557 const onAbort = () => {
558 aborted = true;
559 proc.kill("SIGKILL");
560 cleanup();
561 reject(new Error(SSH_OPERATION_ABORTED_ERROR));
562 };
563 abortSignal?.addEventListener("abort", onAbort, { once: true });
564 if (abortSignal?.aborted) {
565 onAbort();

Callers

nothing calls this directly

Calls 3

rejectFunction · 0.85
cleanupFunction · 0.70
killMethod · 0.65

Tested by

no test coverage detected