fix(comment-checker): improve pending calls handling and add tests
🤖 Generated with assistance of OhMyOpenCode
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user