async combinators for Stream
Open
enhancement
- Dominant language
- Rust
- Stars
- 4.1k
- Forks
- 339
- PR merge metrics
- No merged PRs in 30d
Description
Our [stream combinators](https://docs.rs/async-std/0.99.7/async_std/stream/trait.Stream.html) operate on asynchronous data, but are themselves synchronous.
This means it's not possible to for example filter or map a stream based on other async operations. Which seems limiting, as it's possible to call sync functions from async functions but not the other way around.
I'd like to propose we update our Stream combinators that take closures to be async functions.
cc/ @montekki
ref #129
Contributor guide
Assessment
This issue has not been assessed yet.