MCPcopy Create free account
hub / github.com/codeaashu/claude-code / [Symbol.asyncIterator]

Method [Symbol.asyncIterator]

src/utils/stream.ts:11–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 constructor(private readonly returned?: () => void) {}
10
11 [Symbol.asyncIterator](): AsyncIterableIterator<T> {
12 if (this.started) {
13 throw new Error('Stream can only be iterated once')
14 }
15 this.started = true
16 return this
17 }
18
19 next(): Promise<IteratorResult<T, unknown>> {
20 if (this.queue.length > 0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected