Skip to content

Missing StreamExt::unzip #2234

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

Closed
LLFourn opened this issue Oct 16, 2020 · 2 comments · Fixed by #2263
Closed

Missing StreamExt::unzip #2234

LLFourn opened this issue Oct 16, 2020 · 2 comments · Fixed by #2263
Labels
A-stream Area: futures::stream C-feature-request

Comments

@LLFourn
Copy link

LLFourn commented Oct 16, 2020

See core::iterator::unzip

@binier
Copy link
Contributor

binier commented Oct 22, 2020

Are you looking for this?

/// Consumes this combinator, returning the underlying streams.
///
/// Note that this may discard intermediate state of this combinator, so
/// care should be taken to avoid losing resources when this is called.
pub fn into_inner(self) -> (St1, St2) {
(self.stream1.into_inner(), self.stream2.into_inner())
}

Or are you talking about a single stream which returns a tuple and you want unzip that into two streams?

@LLFourn
Copy link
Author

LLFourn commented Oct 24, 2020

Or are you talking about a single stream which returns a tuple and you want unzip that into two streams?

Yes. This is what I wanted.

binier added a commit to binier/futures-rs that referenced this issue Nov 5, 2020
binier added a commit to binier/futures-rs that referenced this issue Nov 5, 2020
binier added a commit to binier/futures-rs that referenced this issue Nov 14, 2020
binier added a commit to binier/futures-rs that referenced this issue Nov 14, 2020
@taiki-e taiki-e added the A-stream Area: futures::stream label Jan 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-stream Area: futures::stream C-feature-request
Projects
None yet
3 participants