()
| 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected