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

stream: documentation note for throttle unpin #3600

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

webern
Copy link
Contributor

@webern webern commented Mar 9, 2021

Add a note in the documentation for Throttle that it can be made to
implement Unpin by pinning it.

Motivation

I had trouble updating to tokio v1 because the Throttle struct is !Unpin and my code required it to be Unpin.
I asked for help on the PR that I think made the change, #3278. In that discussion it was recommended that we document the fix.

Solution

Added a sentence to help anyone else in the same boat!

Add a note in the documentation for Throttle that it can be made to
implement Unpin by pinning it.
@Darksonn Darksonn added A-tokio-stream Area: The tokio-stream crate M-time Module: tokio/time T-docs Topic: documentation labels Mar 10, 2021
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

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

Thanks!

@Darksonn Darksonn merged commit 8c5cde9 into tokio-rs:master Mar 10, 2021
@webern webern deleted the throttle-unpin-doc branch March 10, 2021 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio-stream Area: The tokio-stream crate M-time Module: tokio/time T-docs Topic: documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants