(items: T[])
| 3 | |
| 4 | // Helper function to create an async generator from array |
| 5 | async function* createAsyncGenerator<T>(items: T[]): AsyncGenerator<T> { |
| 6 | for (const item of items) { |
| 7 | yield item; |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | // Helper function to collect all results from async generator |
| 12 | async function collectResults<T>(asyncGen: AsyncGenerator<T>): Promise<T[]> { |
no outgoing calls
no test coverage detected