New blog post: The Future Trait Has a Missing State https://blog.yoshuawuyts.com...

@yosh@toot.yosh.is

New blog post: The Future Trait Has a Missing State

blog.yoshuawuyts.com/the-futur

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.