The Future Trait Has A Missing State
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
The article argues that Rust's Future and Coroutine state enums lack a "Done" state, forcing callers into panics, hangs, or workarounds like the MaybeDone type and the futures crate's Fuse adapter, which misuses Poll::Pending.