()
| 237 | const iterator = chunk[Symbol.iterator]() |
| 238 | let next = iterator.next() |
| 239 | function loop() { |
| 240 | const item = next |
| 241 | next = iterator.next() |
| 242 | const success = writable.write(item.value, encoding as any) |
| 243 | if (next.done) { |
| 244 | resume(Effect.void) |
| 245 | } else if (success) { |
| 246 | loop() |
| 247 | } else { |
| 248 | writable.once("drain", loop) |
| 249 | } |
| 250 | } |
| 251 | loop() |
| 252 | }) |
| 253 |
no test coverage detected