Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
toAsyncIterable: Remove unnecessary EOF check (#3914)
In #2335 a conditional was added to make sure toAsyncIterator didn't skip chunks because the reader returned data and EOF in a single call, fixing #2330. Later, in #2591, the `Reader` interface changed to `Promise<number | EOF>`. Since the reader no longer returns data and EOF in a single call, this conditional is not necessary. We can just return `{ done: true }` when we get `EOF`. Co-authored-by: Arun Srinivasan <[email protected]> Co-authored-by: Arun Srinivasan <[email protected]>
- Loading branch information