Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor CHANNEL types to be exception-less and use result #14

Merged
merged 3 commits into from Nov 25, 2016

Conversation

avsm
Copy link
Member

@avsm avsm commented Nov 23, 2016

  • remove read_stream and io_stream as Lwt_stream is difficult to
    combine with error handling
  • remove read_until and only expose the line handling functions.
    I'm also considering moving the line-handling functions into a
    separate signature since most consumers of CHANNEL only want the
    buffering logic.
  • no more exceptions, just use result and propagate FLOW.error
    in return values.

- remove `read_stream` and `io_stream` as Lwt_stream is difficult to
  combine with error handling
- remove `read_until` and only expose the line handling functions.
  I'm also considering moving the line-handling functions into a
  separate signature since most consumers of CHANNEL only want the
  buffering logic.
- no more exceptions, just use `result` and propagate `FLOW.error`
  in return values.
@@ -1,4 +1,4 @@
version = "%%VERSION%%"
version = "%%VERSION_NUM%%"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@avsm avsm merged commit 0b128b6 into mirage:master Nov 25, 2016
@avsm avsm deleted the channel-result branch November 25, 2016 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants