New blog post: The Future Trait Has a Missing State https://blog.yoshuawuyts.com...
yosh @yosh@toot.yosh.is
New blog post: The Future Trait Has a Missing State
https://blog.yoshuawuyts.com/the-future-trait-has-a-missing-state
The Future trait in Rust doesn’t have a “done” state, and so if you poll it again after completion it will panic. Or hang indefinitely. Dealer’s choice, really. Despite there being ample uses for wanting to track whether a future is done.