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

Function scheduleTimer

bulk_delete/bulk_delete.ts:268–275  ·  view source on GitHub ↗
(fn: () => void, ms: number)

Source from the content-addressed store, hash-verified

266}
267
268export default new BulkDeletePlugin();
269
270// Timer tracking for safe cleanup
271const pendingTimers = new Set<ReturnType<typeof setTimeout>>();
272
273function scheduleTimer(fn: () => void, ms: number): ReturnType<typeof setTimeout> {
274 const t = setTimeout(() => {
275 pendingTimers.delete(t);
276 fn();
277 }, ms);
278 pendingTimers.add(t);

Callers 1

bdFunction · 0.70

Calls 3

fnFunction · 0.85
deleteMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected