You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't correctly propagate the termination of the underlying future
use futures::future::FusedFuture;use futures::future::FutureExt;fnmain(){assert!(futures::future::pending::<()>().is_terminated());assert!(futures::future::pending::<()>().map(|()| ()).is_terminated());}
Right. Also some Fused{Future, Stream} impls, including Fuse, should have similar issues.
And, this is one of the reasons I'd like to remove Fused{Future, Stream} (#2111 (comment)).
As said in #2207 (comment), the current implementation is correct if the underlying types do not implement FusedFuture, but is incorrect if it is implemented.
Closing in favor of #2207, which propose the removal of FusedFuture.
It doesn't correctly propagate the termination of the underlying future
This should be delegating through to the inner future:
futures-rs/futures-util/src/future/future/map.rs
Line 34 in 32d970e
The text was updated successfully, but these errors were encountered: