MCPcopy Index your code
hub / github.com/tiann/hapi / close

Method close

cli/src/utils/MessageQueue2.ts:287–297  ·  view source on GitHub ↗

* Close the queue - no more messages can be pushed

()

Source from the content-addressed store, hash-verified

285 * Close the queue - no more messages can be pushed
286 */
287 close(): void {
288 logger.debug(`[MessageQueue2] close() called`);
289 this.closed = true;
290
291 // Notify any waiting caller
292 if (this.waiter) {
293 const waiter = this.waiter;
294 this.waiter = null;
295 waiter(false);
296 }
297 }
298
299 /**
300 * Check if the queue is closed

Callers 4

createSessionStubFunction · 0.95
makeSessionFunction · 0.95
createSessionStubFunction · 0.95
createSessionStubFunction · 0.95

Calls 1

debugMethod · 0.80

Tested by 4

createSessionStubFunction · 0.76
makeSessionFunction · 0.76
createSessionStubFunction · 0.76
createSessionStubFunction · 0.76