rust-lang / futures-rs

Zero-cost asynchronous programming in Rust
https://rust-lang.github.io/futures-rs/
Apache License 2.0
5.43k stars 628 forks source link

refactor: `TryFuture`s are `Future`s now, `into_future` is no longer need #2878

Open yhx-12243 opened 3 months ago

yhx-12243 commented 3 months ago

Reduce a wrapper for IntoFuture struct, reduce code complexity.

yhx-12243 commented 3 months ago

AFAIK there are almost no crates use these IntoFutures and IntoStreams. But if one want the backward compatibility, one can define type IntoFuture<T> = T and type IntoStream<T> = T or just bump to v0.4.0, both is OK.

taiki-e commented 1 month ago

This appears to be a duplicate of https://github.com/rust-lang/futures-rs/pull/2763?

yhx-12243 commented 1 month ago

This appears to be a duplicate of #2763?

Maybe to say it is an extension better.