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

tokio_stream::StreamMap extend() - do not allow duplicate keys #5586

Closed
wants to merge 1 commit into from

Conversation

baum
Copy link

@baum baum commented Mar 29, 2023

tokio_stream::StreamMap extend() - do not allow duplicate keys

Motivation

Issue #4774

Solution

A naive polynomial time complexity implementation that might be unworkable. However, this implementation does not allow duplicate keys and would overwrite existing ones similar to from_iter() behavior.

Initially introduced

PR #4272

Note

Can not implement Extend trait, since this method has stricter requirements than trait, as Extend does not require Key to be Eq + Hash

…kable.

However, this implementation does not allow duplicate keys and would overwrite
existing ones similar to from_iter() behaviour.

Initially introduced: PR tokio-rs#4272 - tokio-rs#4272

Note: can not implement Extend trait, since this method has stricter
requirements than trait, as Extend does not require Key to be 'Eq + Hash'

Issue tokio-rs#4774 - tokio-rs#4774
@Darksonn Darksonn added M-stream Module: tokio/stream A-tokio-stream Area: The tokio-stream crate labels Mar 29, 2023
@Darksonn
Copy link
Contributor

This is a breaking change.

@Darksonn Darksonn closed this Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio-stream Area: The tokio-stream crate M-stream Module: tokio/stream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants