()
| 203 | }, |
| 204 | }; |
| 205 | async function* infiniteSource() { |
| 206 | let i = 0; |
| 207 | while (true) { |
| 208 | yield [new TextEncoder().encode(`chunk${i++}`)]; |
| 209 | } |
| 210 | } |
| 211 | // Consumer breaks after first chunk |
| 212 | // eslint-disable-next-line no-unused-vars |
| 213 | for await (const _ of pull(infiniteSource(), trackingTransform)) { |
no test coverage detected