Implement StreamMap::get
to be able to obtain a reference to a specific stream
#5131
Labels
A-tokio-stream
Area: The tokio-stream crate
C-feature-request
Category: A feature request.
M-stream
Module: tokio/stream
S-breaking-change
A breaking change that requires manual coordination to be released.
Is your feature request related to a problem? Please describe.
Currently is not possible to get a reference to a stream in StreamMap.
I'd like to contribute to change that if you are OK with my approach.
Describe the solution you'd like
Although I've not tried it yet, a possible implementation is:
Describe alternatives you've considered
The proposed solution mimics HashMap::get and it is similar to StreamMap::contains_key.
Additional context
I'm using something like this in my project:
The text was updated successfully, but these errors were encountered: