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

Method reset

cli/src/utils/MessageQueue2.ts:275–282  ·  view source on GitHub ↗

* Reset the queue - clears all messages and resets to empty state

()

Source from the content-addressed store, hash-verified

273 * Reset the queue - clears all messages and resets to empty state
274 */
275 reset(): void {
276 logger.debug(`[MessageQueue2] reset() called. Clearing ${this.queue.length} messages`);
277 this.queue = [];
278 this.closed = false;
279
280 // Clear waiter without calling it since we're not closing
281 this.waiter = null;
282 }
283
284 /**
285 * Close the queue - no more messages can be pushed

Callers 4

handleAbortMethod · 0.45
doAbortMethod · 0.45
handleAbortMethod · 0.45
handleAbortMethod · 0.45

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected