-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve API consistency and docs. (#228)
* Improve API consistency and docs. * Change most APIs to use `IOException` as the error type instead of `Exception`. Non-IO exceptions are now considered defects as they only occur due to misuse of the API. * Similarly change incorrect `Buffer` usage errors to be defects instead of failures. * The `Async*` classes still use `Exception` for the error type for now, as the NIO Javadocs are vague as to what kind of exceptions to expect from these. * Rename various read and write methods so they match the underlying NIO methods. Seems clearer. * Add various Scaladocs (more still needed). * Use `Option` to indicate end-of-stream when reading, instead of `-1` magic value. * Improvements to InetSocketAddress. * fmt * Improve end-of-stream handling. End-of-stream is now handled in a consistent way across all read APIs. If a read encounters end-of-stream, the effect will fail with a `java.io.EOFException`. * Rebase onto ZIO 1.0.
- Loading branch information
Showing
61 changed files
with
2,245 additions
and
1,242 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
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
Oops, something went wrong.