MCPcopy Index your code
hub / github.com/TanStack/ai / end

Method end

packages/ai-acp/src/stream/queue.ts:25–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 }
24
25 end(): void {
26 if (this.ended || this.failed) return
27 this.ended = true
28 for (const waiter of this.waiters.splice(0)) {
29 waiter.resolve({ value: undefined, done: true })
30 }
31 }
32
33 fail(error: unknown): void {
34 if (this.ended || this.failed) return

Callers 2

chatStreamAcpMethod · 0.95
chatStreamMethod · 0.95

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected