MCPcopy Index your code
hub / github.com/codeaashu/claude-code / removeDeliveredAsyncHooks

Function removeDeliveredAsyncHooks

src/utils/hooks/AsyncHookRegistry.ts:270–279  ·  view source on GitHub ↗
(processIds: string[])

Source from the content-addressed store, hash-verified

268}
269
270export function removeDeliveredAsyncHooks(processIds: string[]): void {
271 for (const processId of processIds) {
272 const hook = pendingHooks.get(processId)
273 if (hook && hook.responseAttachmentSent) {
274 logForDebugging(`Hooks: Removing delivered hook ${processId}`)
275 hook.stopProgressInterval()
276 pendingHooks.delete(processId)
277 }
278 }
279}
280
281export async function finalizePendingAsyncHooks(): Promise<void> {
282 const hooks = Array.from(pendingHooks.values())

Callers 1

Calls 3

logForDebuggingFunction · 0.85
getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected