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

Function beginRequest

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

Source from the content-addressed store, hash-verified

274
275 /** Claim a session for one in-flight request, so the sweep cannot take it. */
276 const beginRequest = (id: string): void => {
277 activeRequests.set(id, (activeRequests.get(id) ?? 0) + 1);
278 };
279
280 /**
281 * Release the claim and restamp: a call that ran for an hour leaves the

Callers 1

forwardFunction · 0.85

Calls 2

setMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected