Closed nhz2 closed 2 months ago
After this and #229 is merged I'll make a PR to update the version to 0.11
Please provide guidance on how to migrate with the breaking change or at least provide further documentation on the change.
Okay, I can add a section to the docs on how to update from 0.10 to 0.11. For most uses no changes should be needed.
If the
eof
function returnsfalse
then it must be safe to read a byte.If the stream is closed or otherwise not readable
eof
should throw an error to distinguish this from the case where the stream is empty. Ref: https://github.com/JuliaIO/TranscodingStreams.jl/pull/170#discussion_r1501890682To get something kindof similar to the previous behavior of
eof
use!isreadable(stream) || eof(stream)