(controller)
| 181 | async function collectStream(chunks: unknown[]): Promise<unknown[]> { |
| 182 | const stream = new ReadableStream({ |
| 183 | start(controller) { |
| 184 | for (const chunk of chunks) { |
| 185 | controller.enqueue(chunk); |
| 186 | } |
| 187 | controller.close(); |
| 188 | }, |
| 189 | }); |
| 190 | |
| 191 | const result: unknown[] = []; |