futures-stream-select-all
A futures library adapter for merging the output of several streams.
It implements a binary-tree structure to efficiently perform select for any amount of undelying streams.
Usage
First, add this to your Cargo.toml
:
[]
= "0.1"
Next, add this to your crate:
extern crate futures-stream-select-all;
use select_all;
Example
use ;
use select_all;
let stream_a = iter;
let stream_b = iter;
let stream_c = iter;
let mut values =
.collect
.wait
.unwrap;
values.sort;
assert_eq!;
License
futures-stream-select-all
is primarily distributed under the terms of the MIT license.
See LICENSE-MIT for details.