Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: fork/split/broadcast/unzip/switch a Stream into two #706

Open
Earthson opened this issue Feb 18, 2020 · 1 comment
Open

Comments

@Earthson
Copy link

I was wandering if we could have a method to fork/split/broadcast/unzip/switch a Stream into two Streams. We do have a unzip now, but it returns two container, which is not symmetric to zip.

fn unzip() -> (LeftStream<L>, RightStream<R>) where Self: Stream<(L, R)>

fn switch(test: T => bool) -> (TrueStream<T>, FalseStream<T>)

related works: #543

https://docs.rs/broadcaster/1.0.0/broadcaster/

@Earthson Earthson changed the title Feature requirement: unzip() -> (LeftStream, RightStream) Feature Request: unzip() -> (LeftStream, RightStream) Feb 18, 2020
@Earthson Earthson changed the title Feature Request: unzip() -> (LeftStream, RightStream) Feature Request: fork/split/broadcast/unzip/switch a Stream into two Feb 18, 2020
@yoshuawuyts
Copy link
Contributor

Related: #486

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants