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

Function cleanup

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

Source from the content-addressed store, hash-verified

133 let settled = false;
134
135 const cleanup = () => {
136 clearTimeout(timer);
137 abortSignal?.removeEventListener("abort", onAbort);
138 };
139
140 const finish = (handler: () => void) => {
141 if (settled) {

Callers 4

finishFunction · 0.70
onAbortMethod · 0.70
scheduleKillMethod · 0.70
probeConnectionMethod · 0.70

Calls 1

removeEventListenerMethod · 0.80

Tested by

no test coverage detected