MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / cleanup

Function cleanup

ai/ai.ts:1009–1012  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1007 let settled = false;
1008 const cleanup = () => {
1009 if (!token?.signal) return;
1010 token.signal.removeEventListener("abort", abortHandler);
1011 };
1012 const timeoutId = setTimeout(() => {
1013 if (settled) return;
1014 settled = true;
1015 cleanup();

Callers 4

sleepFunction · 0.70
abortHandlerFunction · 0.70
waitForBotReplyMethod · 0.50
messageHandlerMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected