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

Change SelectAll iterators to return stream instead of StreamFuture #2431

Merged
merged 1 commit into from May 10, 2021

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented May 10, 2021

The conversion from StreamFuture to the underlying stream always succeeds because FuturesUnordered removes completed futures. So, I think it makes sense and more useful that SelectAll iterators return stream instead of StreamFuture.

This also removes iter_pin_ref and iter_pin_mut, because SelectAll's streams are always Unpin.

cc #1964, #2428
FYI @ibraheemdev

@taiki-e taiki-e added A-stream Area: futures::stream 0.3-backport: pending The maintainer accepted to backport this to the 0.3 branch, but backport has not been done yet. labels May 10, 2021
@ibraheemdev
Copy link
Member

ah nice, you newtyped the iterators, I was going to bring that up.

@taiki-e taiki-e merged commit 5ea04ca into master May 10, 2021
@taiki-e taiki-e deleted the stream-select_all branch May 10, 2021 15:25
@taiki-e taiki-e mentioned this pull request May 10, 2021
@taiki-e taiki-e added 0.3-backport: completed and removed 0.3-backport: pending The maintainer accepted to backport this to the 0.3 branch, but backport has not been done yet. labels May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants