Crates.io | stream-combinators |
lib.rs | stream-combinators |
version | 0.1.0 |
source | src |
created_at | 2018-01-24 01:48:20.973619 |
updated_at | 2018-01-24 01:48:20.973619 |
description | Additional stream combinators for [`futures-rs`](https://github.com/alexcrichton/futures-rs/) streams. |
homepage | https://github.com/LinuxMercedes/stream-combinators |
repository | https://github.com/LinuxMercedes/stream-combinators |
max_upload_size | |
id | 48107 |
size | 29,624 |
Additional stream combinators for futures-rs
streams:
filter_fold
accumulates one stream into another.sequence
transforms a source stream into a new stream immediately before the source stream produces a value.See the source files and examples for much more detailed documentation and motivating examples.
First, add this to your Cargo.toml
:
[dependencies]
stream-combinators = "0.1.0"
Next, add this to your crate:
extern crate stream_combinators;
To use filter_fold
, include the following:
use stream_combinators::FilterFoldStream;
Or to use sequence
, include the following:
use stream_combinators::SequenceStream;
These combinators can be used on any Stream
in the same way that
the default combinators are used.
This project is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Futures by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.