futures-rs icon indicating copy to clipboard operation
futures-rs copied to clipboard

Move type/trait aliases to futures-util

Open taiki-e opened this issue 4 years ago • 1 comments

This moves type aliases (BoxFuture, LocalBoxFuture, BoxStream, LocalBoxStream) and Trait aliases (TryFuture, TryStream) to futures-util.

part of #2207

  • Type aliases (BoxFuture, LocalBoxFuture, BoxStream, LocalBoxStream)
    • Move to futures-util.
    • They are just type aliases of Pin<Box>ed future/stream.
  • Trait aliases (TryFuture, TryStream)
    • Move to futures-util.
    • They are just trait aliases of future/stream that return Result, but the real trait aliases are not yet stable, so they have some limitations. See #2200 for one of the limitations.

~~This PR is marked as a draft because based on #2335. See the second commit for actual changes in this PR.~~

taiki-e avatar Feb 13 '21 20:02 taiki-e

Oh, a lot of conflicts...

taiki-e avatar Jun 16 '21 14:06 taiki-e