MCPcopy
hub / github.com/coder/mux / onAbort

Method onAbort

src/node/services/coderService.ts:769–769  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

767 const controller = new AbortController();
768 const timeout = setTimeout(() => controller.abort(), 30_000);
769 const onAbort = () => controller.abort();
770 signal?.addEventListener("abort", onAbort, { once: true });
771 if (signal?.aborted) {
772 controller.abort();

Callers

nothing calls this directly

Calls 5

removeEventListenerMethod · 0.80
cleanupFunction · 0.70
resolveFunction · 0.70
abortMethod · 0.65
terminateMethod · 0.65

Tested by

no test coverage detected