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

Method error

packages/runtime/src/async-queue.ts:130–139  ·  view source on GitHub ↗
(err: Error)

Source from the content-addressed store, hash-verified

128 }
129
130 error(err: Error): void {
131 if (this.closed) return;
132 this.err = err;
133 this.closed = true;
134 while (this.waiters.length > 0) {
135 const w = this.waiters.shift()!;
136 w.reject(err);
137 }
138 this.wake();
139 }
140
141 [Symbol.asyncIterator](): AsyncIterator<T> {
142 return {

Callers

nothing calls this directly

Calls 2

wakeMethod · 0.95
rejectMethod · 0.65

Tested by

no test coverage detected