* Release specific item by ID
(itemId: number)
| 63 | * Release specific item by ID |
| 64 | */ |
| 65 | private async releaseItem(itemId: number): Promise<void> { |
| 66 | await this.lock.inLock(async () => { |
| 67 | const item = this.queue.find(i => i.id === itemId); |
| 68 | if (item && !item.released) { |
| 69 | item.released = true; |
| 70 | |
| 71 | // Clear timer if exists |
| 72 | const timer = this.delayTimers.get(itemId); |
| 73 | if (timer) { |
| 74 | clearTimeout(timer); |
| 75 | this.delayTimers.delete(itemId); |
| 76 | } |
| 77 | } |
| 78 | }); |
| 79 | |
| 80 | this.scheduleProcessing(); |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Release all messages with specific tool call ID |
no test coverage detected