-
Notifications
You must be signed in to change notification settings - Fork 656
Closed
Labels
Description
return unsafe { Pin::new_unchecked(fut2) }.poll(cx); |
As you can see, once the second future returns ready it will return immediately without first transitioning to the Empty
state, which is what the is_terminated
function looks at:
futures-rs/futures-util/src/future/future/chain.rs
Lines 16 to 18 in 2f8943d
pub(crate)fn is_terminated(&self) -> bool { | |
if let Chain::Empty = *self { true } else { false } | |
} |