futures-rs
futures-rs copied to clipboard
Zero-cost asynchronous programming in Rust
This is more a user story than anything else. Say I have a `Stream` of futures and I want to do something with it. The first thing I did was...
Currently biased select is only available via macro `select_biased!`. It would be useful to also have `fn select_biased_all` with same logic
I expected to be able to be able to filter a try stream with a fallible filter function, like this: ```rust try_stream.try_filter(|v| v.fallible_async_operation().await?) ``` However, `try_filter` expects the closure passed...
There's a mistake I did many times, and I suspect others did it too. It can be illustrated with this example: ```rust fn produce_messages(tx: Sender) -> io::Result { let file...
This is a tracking issue on how to handle stream trait compatibility between 0.3 and 1.0. I said that it's okay to use something like [semver trick](https://github.com/dtolnay/semver-trick) in #2335, but...
`SinkMapExt::sink_map_err` accepts an `FnOnce` to map the error type at most once. A second error mapping will cause a panic because the mapping function has been consumed. As far as...
It would be really nice if Mutex had deadlock detection (including via a feature flag). Especially in an async context where it's hard to peer into the state of tasks,...
This is a proposal for the next major release of futures-core. (I will open issues for other crates later. They are probably 0.4 instead of 1.0.) ## About I propose...
Disabling the default features is usually more verbose and easier to forget than enabling a feature. Given that many libraries seem to disable this feature due to compile times, it...
This is not ready to be merged, but I wanted to see if this kind of primitive would be useful. There is a case that came up in `async-h1` where...