rust-lang / futures-rs

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

Don't ignore empty state polling #2728

Closed olegnn closed 1 year ago

olegnn commented 1 year ago

To solve the same problem as #2726: if the stream was moved to another task and polled while its state is empty, wakers must be replaced.

taiki-e commented 1 year ago

Is it possible to add a test case for this?