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

Function removeWaiter

apps/local/src/oauth-result-store.ts:51–53  ·  view source on GitHub ↗
(sessionId: string, wake: () => void)

Source from the content-addressed store, hash-verified

49const waiters = new Map<string, () => void>();
50
51const removeWaiter = (sessionId: string, wake: () => void): void => {
52 if (waiters.get(sessionId) === wake) waiters.delete(sessionId);
53};
54
55const wakeWaiter = (sessionId: string): void => {
56 const wake = waiters.get(sessionId);

Callers 1

finishFunction · 0.85

Calls 2

getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected