(processIds: string[])
| 268 | } |
| 269 | |
| 270 | export 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 | |
| 281 | export async function finalizePendingAsyncHooks(): Promise<void> { |
| 282 | const hooks = Array.from(pendingHooks.values()) |
no test coverage detected