MCPcopy Index your code
hub / github.com/TeleBoxOrg/TeleBox_Plugins / trackTimer

Function trackTimer

im/im.ts:105–109  ·  view source on GitHub ↗
(timer: ReturnType<typeof setTimeout>)

Source from the content-addressed store, hash-verified

103 } catch (e) {
104 console.error(`[${PLUGIN_NAME}] Could not resolve peer:`, e);
105 return null;
106 }
107}
108
109// ==================== Timer tracking for safe cleanup ====================
110const pendingTimers = new Set<ReturnType<typeof setTimeout>>();
111
112function trackTimer(timer: ReturnType<typeof setTimeout>): ReturnType<typeof setTimeout> {

Callers 1

editMethod · 0.70

Calls 1

addMethod · 0.45

Tested by

no test coverage detected