async-rs / async-rs/async-std

async-std's future timeout helper is too inflexible about errors

Open
#972 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.