fix(comment-checker): improve pending calls handling and add tests

🤖 Generated with assistance of OhMyOpenCode
This commit is contained in:
YeonGyu-Kim
2026-03-31 17:33:38 -07:00
parent 439c9a6499
commit 3c77c048dd
3 changed files with 57 additions and 1 deletions
@@ -24,6 +24,15 @@ export function startPendingCallCleanup(): void {
}
}
export function stopPendingCallCleanup(): void {
pendingCalls.clear()
if (cleanupInterval) {
clearInterval(cleanupInterval)
cleanupInterval = undefined
}
cleanupIntervalStarted = false
}
export function registerPendingCall(callID: string, pendingCall: PendingCall): void {
pendingCalls.set(callID, pendingCall)
}