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

Function refreshGateFor

packages/core/sdk/src/executor.ts:267–273  ·  view source on GitHub ↗
(rootDb: object)

Source from the content-addressed store, hash-verified

265const refreshGateByRootDb = new WeakMap<object, RefreshGate>();
266
267const refreshGateFor = (rootDb: object): RefreshGate => {
268 const existing = refreshGateByRootDb.get(rootDb);
269 if (existing) return existing;
270 const created: RefreshGate = new Map();
271 refreshGateByRootDb.set(rootDb, created);
272 return created;
273};
274
275// ---------------------------------------------------------------------------
276// Elicitation handler — resolved once at `createExecutor({ onElicitation })`

Callers 1

createExecutorFunction · 0.85

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected