MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / endRequest

Function endRequest

packages/hosts/mcp/src/in-memory-session-store.ts:286–291  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

284 * disposed id.
285 */
286 const endRequest = (id: string): void => {
287 const remaining = (activeRequests.get(id) ?? 1) - 1;
288 if (remaining > 0) activeRequests.set(id, remaining);
289 else activeRequests.delete(id);
290 touch(id);
291 };
292
293 /**
294 * Shut down a session's engine. Dropping the reference is not enough: the

Callers 1

forwardFunction · 0.85

Calls 4

touchFunction · 0.85
getMethod · 0.65
setMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected