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

Improve documentation of Lwt_stream #1006

Merged
merged 1 commit into from
Dec 18, 2023
Merged

Conversation

raphael-proust
Copy link
Collaborator

Fixes #1005

@raphael-proust
Copy link
Collaborator Author

A bit lazy, I don't know how to reference methods in the doc markup so I just went for plain english. Suggestions welcome but I'm also ok to merge as is.

@@ -84,17 +84,17 @@ class type ['a] bounded_push = object
is already blocked on [push], it raises {!Lwt_stream.Full}. *)

method close : unit
(** Closes the stream. Any thread currently blocked on
{!Lwt_stream.bounded_push.push} fails with {!Lwt_stream.Closed}. *)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think maybe it should be {!Lwt_stream.bounded_push#push} but I find it hard to test or find resources for how to cross-reference methods.

@raphael-proust raphael-proust merged commit 19bba4a into master Dec 18, 2023
44 of 45 checks passed
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.

Exception printed in Lwt_stream.bounded_push#close documentation
2 participants