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

Method close

packages/runtime/src/async-queue.ts:120–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118 }
119
120 close(): void {
121 if (this.closed) return;
122 this.closed = true;
123 while (this.waiters.length > 0) {
124 const w = this.waiters.shift()!;
125 w.resolve({ value: undefined as unknown as T, done: true });
126 }
127 this.wake();
128 }
129
130 error(err: Error): void {
131 if (this.closed) return;

Callers 2

sendWithinScopeMethod · 0.95

Calls 2

wakeMethod · 0.95
resolveMethod · 0.65

Tested by

no test coverage detected