MCPcopy Create free account
hub / github.com/apache/maka / waitUntilConsumed

Method waitUntilConsumed

packages/runtime/src/async-queue.ts:84–90  ·  view source on GitHub ↗
(sequence: number)

Source from the content-addressed store, hash-verified

82 }
83
84 private async waitUntilConsumed(sequence: number): Promise<void> {
85 while (this.consumedCount < sequence) {
86 if (this.err) throw this.err;
87 if (this.consumerDetached) throw consumerDetachedError();
88 await this.waitForProgress();
89 }
90 }
91
92 /** Consumer-side ack: one event has been fully processed (not just received). */
93 ackConsumed(): void {

Callers 2

Calls 2

waitForProgressMethod · 0.95
consumerDetachedErrorFunction · 0.85

Tested by

no test coverage detected