-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
docs: add link to PollSender #3613
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -314,7 +314,8 @@ impl<T> Sender<T> { | |||||
Sender { chan } | ||||||
} | ||||||
|
||||||
/// Sends a value, waiting until there is capacity. | ||||||
/// Sends a value, waiting until there is capacity. In case you need a | ||||||
/// polling interface, use [`PollSender`]. | ||||||
/// | ||||||
/// A successful send occurs when it is determined that the other end of the | ||||||
/// channel has not hung up already. An unsuccessful send would be one where | ||||||
|
@@ -332,6 +333,7 @@ impl<T> Sender<T> { | |||||
/// | ||||||
/// [`close`]: Receiver::close | ||||||
/// [`Receiver`]: Receiver | ||||||
/// [`PollSender`]: https://docs.rs/tokio-util/0.6.4/tokio_util/sync/struct.PollSender.html | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why don't we just put /latest/ here instead of concrete version? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The link may break if we move it or remove it in future versions of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good to know, thanks! |
||||||
/// | ||||||
/// # Examples | ||||||
/// | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like the link to be in the same place in the docs as where I put the similar thing for
Semaphore
.