async-std's future timeout helper is too inflexible about errors
Open
- Dominant language
- Rust
- Stars
- 4.1k
- Forks
- 339
- PR merge metrics
- No merged PRs in 30d
Description
The `async_std::futures::timeout` helper would be much more useful if it was generic over `Error` and took a callback closure to be called when a timeout is hit, so that one can construct /map to their own error type.
Contributor guide
Assessment
This issue has not been assessed yet.