join and select macros should use IntoFuture #6442
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
M-macros
Module: macros in the main Tokio crate
S-blocked-on-msrv
Status: need an MSRV bump to progress
Is your feature request related to a problem? Please describe.
A user was confused by the error messages when trying to select on an IntoFuture type.
Describe the solution you'd like
The join and select macros should call IntoFuture::into_future on setup.
Describe alternatives you've considered
Improve documentation in Rust to aid with suggesting
fut.into_future()
when an IntoFuture type ispoll
edAdditional context
IntoFuture is stable since 1.64.0.
tokio/tokio/src/macros/select.rs
Line 474 in 9c337ca
tokio/tokio/src/macros/join.rs
Line 79 in 9c337ca
The text was updated successfully, but these errors were encountered: