resyncgg / json-stream

A library to parse Newline Delimited JSON values from a byte stream
Apache License 2.0
4 stars 1 forks source link

feat: add 'respect eof' option for reading from bounded sources #3

Closed tychoish closed 6 months ago

tychoish commented 6 months ago

Sorry for not opening a pull request with this, I ended up running into the obvious problem when reading from finite sources.

I'm happy to write tests for this though I wanted to see if you had opinions on how to mock this out or handle it. (Or even if you were interested,)

tychoish commented 6 months ago

This was a bad idea #5 solves the problem in a reasonable.