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

Backport to 0.1: FuturesUnordered: Do not poll the same future twice per iteration #2358

Merged
merged 1 commit into from Feb 24, 2021

Conversation

krallin
Copy link

@krallin krallin commented Feb 23, 2021

Same as #2333. The same issue exists in 0.1, so backporting it there
helps for code that is still using Futures 0.1 in some places.

Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

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

Thanks! This looks good to me aside from a nit.

src/stream/futures_unordered.rs Outdated Show resolved Hide resolved
@taiki-e taiki-e added futures-0.1 Issue related to the 0.1 versions of futures S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author labels Feb 24, 2021
…per iteration

Same as rust-lang#2333. The same issue exists in 0.1, so backporting it there
helps for code that is still using Futures 0.1 in some places.
@krallin
Copy link
Author

krallin commented Feb 24, 2021

Whoops, sorry for that! Fixed now :)

Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

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

Thanks!

@taiki-e taiki-e merged commit cfe1d82 into rust-lang:0.1 Feb 24, 2021
@taiki-e taiki-e removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author label Feb 24, 2021
@taiki-e taiki-e mentioned this pull request Feb 24, 2021
@taiki-e
Copy link
Member

taiki-e commented Feb 24, 2021

Published in 0.1.31.

@krallin
Copy link
Author

krallin commented Feb 24, 2021

Published in 0.1.31.

Thanks! =)

facebook-github-bot pushed a commit to facebookexperimental/rust-shed that referenced this pull request Mar 4, 2021
Summary:
Those newer versions of Futures have compatibility improvements with Tokio,
notably:

- rust-lang/futures-rs#2333
- rust-lang/futures-rs#2358

Reviewed By: farnz

Differential Revision: D26778794

fbshipit-source-id: 5a9dc002083e5edfa5c614d8d2242e586a93fcf6
facebook-github-bot pushed a commit to facebook/sapling that referenced this pull request Mar 4, 2021
Summary:
Those newer versions of Futures have compatibility improvements with Tokio,
notably:

- rust-lang/futures-rs#2333
- rust-lang/futures-rs#2358

Reviewed By: farnz

Differential Revision: D26778794

fbshipit-source-id: 5a9dc002083e5edfa5c614d8d2242e586a93fcf6
facebook-github-bot pushed a commit to facebook/fbthrift that referenced this pull request Mar 4, 2021
Summary:
Those newer versions of Futures have compatibility improvements with Tokio,
notably:

- rust-lang/futures-rs#2333
- rust-lang/futures-rs#2358

Reviewed By: farnz

Differential Revision: D26778794

fbshipit-source-id: 5a9dc002083e5edfa5c614d8d2242e586a93fcf6
facebook-github-bot pushed a commit to facebookincubator/below that referenced this pull request Mar 4, 2021
Summary:
Those newer versions of Futures have compatibility improvements with Tokio,
notably:

- rust-lang/futures-rs#2333
- rust-lang/futures-rs#2358

Reviewed By: farnz

Differential Revision: D26778794

fbshipit-source-id: 5a9dc002083e5edfa5c614d8d2242e586a93fcf6
facebook-github-bot pushed a commit to facebook/fb303 that referenced this pull request Mar 4, 2021
Summary:
Those newer versions of Futures have compatibility improvements with Tokio,
notably:

- rust-lang/futures-rs#2333
- rust-lang/futures-rs#2358

Reviewed By: farnz

Differential Revision: D26778794

fbshipit-source-id: 5a9dc002083e5edfa5c614d8d2242e586a93fcf6
vkill pushed a commit to bk-rs/fbthrift-git-rs that referenced this pull request Mar 23, 2021
Summary:
Those newer versions of Futures have compatibility improvements with Tokio,
notably:

- rust-lang/futures-rs#2333
- rust-lang/futures-rs#2358

Reviewed By: farnz

Differential Revision: D26778794

fbshipit-source-id: 5a9dc002083e5edfa5c614d8d2242e586a93fcf6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
futures-0.1 Issue related to the 0.1 versions of futures
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants