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

Lwt_stream: change close semantics for fixed-length sources #302

Merged
merged 2 commits into from
Dec 19, 2016

Conversation

aantron
Copy link
Collaborator

@aantron aantron commented Dec 7, 2016

This is a fixed-up version of #239. The first commit is a squash of that entire PR, the main purpose of which is to leave unchanged attribution and blame on lines with no net change during the PR.

Diffs for easy comparison:

attn @seliopou

seliopou and others added 2 commits December 6, 2016 19:27
Previously, the of_list, of_array, and of_string constructors each would
produce a stream s for which

  is_closed s = false

This is counter-intuitive as all the elements of the stream s have been
generated and should be consumable without blocking. This commit changes
the behavior of this constructors such that

  is_closed s = true

immediately upon creation.
@aantron aantron merged commit fa8e6bf into master Dec 19, 2016
@aantron aantron deleted the push-streams branch December 20, 2016 15:27
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.

2 participants