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

feat: Export sync::notify::Notified publicly. #3840

Merged
merged 2 commits into from Jun 14, 2021
Merged

feat: Export sync::notify::Notified publicly. #3840

merged 2 commits into from Jun 14, 2021

Conversation

yotamofek
Copy link
Contributor

Motivation

This is my attempt to get #3372 in, so addressed the comment there and opened this PR.
Quoting that PR:

I would like to avoid boxing the Notified future when storing it a struct in fede1024/rust-rdkafka#320 .

Solution

Add sync::futures module which exposes sync::notify::Notified.

@Darksonn Darksonn added A-tokio Area: The main tokio crate M-sync Module: tokio/sync labels Jun 5, 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.

I don't think we need a separate file here.

tokio/src/sync/mod.rs Outdated Show resolved Hide resolved
@@ -0,0 +1,3 @@
//! Sync future types.

pub use super::notify::Notified;
Copy link
Contributor

Choose a reason for hiding this comment

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

How does the documentation for the Notified type look?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image
Like this. (Fixed the link in the last commit)

@carllerche
Copy link
Member

👍

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-sync Module: tokio/sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants