Skip to content

Improve documentation of Lwt_stream - #1006

Merged
raphael-proust merged 1 commit into
masterfrom
fix-bound-push-doc
Dec 18, 2023
Merged

raphael-proust merged 1 commit into
masterfrom
fix-bound-push-doc

Conversation

@raphael-proust

Copy link
Copy Markdown
Collaborator

Fixes #1005

@raphael-proust

Copy link
Copy Markdown
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.

Comment thread src/core/lwt_stream.mli

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

Copy link
Copy Markdown
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
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