Skip to content

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
@taiki-e taiki-e force-pushed the stream-select_all branch from ddeec92 to 3a09965 Compare May 10, 2021 15:06
@taiki-e taiki-e force-pushed the stream-select_all branch from 3a09965 to 097a390 Compare May 10, 2021 15:07
@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.

3 participants