2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-06-18 20:21:33 +00:00
async-std/src/result
Kyle Tomsic e26eb7a719 Add Stream::sum() and Stream::product() implementations
These are the stream equivalents to `std::iter::Iterator::sum()` and
`std::iter::Iterator::product()`.

Note that this changeset tweaks the `Stream::Sum` and `Stream::Product`
traits a little: rather than returning a generic future `F`, they return
a pinned, boxed, `Future` trait object now. This is in line with other
traits that return a future, e.g. `FromStream`.
2019-10-22 20:30:27 -04:00
..
from_stream.rs Using Box::pin(...) instead of Pin::from(Box::new(...)) 2019-09-30 19:42:30 -04:00
mod.rs Add Stream::sum() and Stream::product() implementations 2019-10-22 20:30:27 -04:00
product.rs Add Stream::sum() and Stream::product() implementations 2019-10-22 20:30:27 -04:00
sum.rs Add Stream::sum() and Stream::product() implementations 2019-10-22 20:30:27 -04:00