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

Method fail

packages/ai-acp/src/stream/queue.ts:33–40  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

31 }
32
33 fail(error: unknown): void {
34 if (this.ended || this.failed) return
35 this.failed = true
36 this.error = error
37 for (const waiter of this.waiters.splice(0)) {
38 waiter.reject(error)
39 }
40 }
41
42 [Symbol.asyncIterator](): AsyncIterator<T> {
43 return {

Callers 2

chatStreamAcpMethod · 0.95
chatStreamMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected