-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new "error" for no bytes available.
`InputStream` documents that `hasBytesAvailable` might return `True` when a `read` is needed to determine the real status. This case caused some attempts to use the delimited api then fall into seeing "end" as an error because it caused folks to see `.truncated` without really knowing nothing was there to read. This provide a distinct case for this condition so callers then have the option to gracefully handle reaching the end. Closed #1410
- Loading branch information
Showing
2 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters