8

Github Change SelectAll iterators to return stream instead of StreamFuture by ta...

 2 years ago
source link: https://github.com/rust-lang/futures-rs/pull/2431
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Copy link

Member

taiki-e commented 24 days ago

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK