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: Rename future::empty to pending and add stream::pending #1689

Merged
merged 4 commits into from
Jun 27, 2019

Conversation

Marwes
Copy link
Contributor

@Marwes Marwes commented Jun 27, 2019

Fixes the inconsistency between future::empty and stream::empty.
I went with pending over never since there are already a future
called Never in the library.

Don't know where to put tests for this as the one place that tested empty seems to be disabled?

Closes #1624

@Marwes Marwes changed the title feat: Rename future::empty to pending and add stream:Lpending feat: Rename future::empty to pending and add stream:pending Jun 27, 2019
Fixes the inconsistency between `future::empty` and `stream::empty`.
I went with `pending` over `never` since there are already a future
called `Never` in the library.

Closes rust-lang#1624
@Marwes Marwes changed the title feat: Rename future::empty to pending and add stream:pending feat: Rename future::empty to pending and add stream::pending Jun 27, 2019
@@ -0,0 +1,29 @@
use core::marker;
Copy link
Member

Choose a reason for hiding this comment

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

This module does not seem to be defined...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤦‍♂️ Fixed...

futures-util/src/stream/pending.rs Outdated Show resolved Hide resolved
futures-util/src/future/pending.rs Outdated Show resolved Hide resolved
@cramertj cramertj merged commit 6f16a1b into rust-lang:master Jun 27, 2019
@cramertj
Copy link
Member

Thanks!

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.

AsyncRead::poll_read() does not expose the EOF concept
3 participants