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

Function finish

src/node/runtime/sshConnectionPool.ts:140–147  ·  view source on GitHub ↗
(handler: () => void)

Source from the content-addressed store, hash-verified

138 };
139
140 const finish = (handler: () => void) => {
141 if (settled) {
142 return;
143 }
144 settled = true;
145 cleanup();
146 handler();
147 };
148
149 const onAbort = () => {
150 finish(() => reject(new Error("Operation aborted")));

Callers 2

onAbortFunction · 0.70

Calls 2

cleanupFunction · 0.70
handlerFunction · 0.50

Tested by

no test coverage detected