MCPcopy Create free account
hub / github.com/tiann/hapi / releaseItem

Method releaseItem

cli/src/claude/utils/OutgoingMessageQueue.ts:65–81  ·  view source on GitHub ↗

* Release specific item by ID

(itemId: number)

Source from the content-addressed store, hash-verified

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

Callers 1

enqueueMethod · 0.95

Calls 3

scheduleProcessingMethod · 0.95
inLockMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected