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

Function onAbort

src/node/services/mcpServerManager.test.ts:219–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217
218 return new Promise<null>((resolve) => {
219 const onAbort = () => {
220 const cleanupPromise = cleanup.promise;
221 registerAbortCleanup?.(cleanupPromise);
222 cleanupPromise.then(
223 () => resolve(null),
224 () => resolve(null)
225 );
226 };
227
228 if (signal.aborted) {
229 onAbort();

Callers 1

Calls 1

resolveFunction · 0.70

Tested by

no test coverage detected