[FEATURE_REQ] Add recv_many
to StreamMap
#6367
Labels
A-tokio-stream
Area: The tokio-stream crate
C-feature-request
Category: A feature request.
M-stream
Module: tokio/stream
Is your feature request related to a problem? Please describe.
Most channels in tokio offer
recv_many
andpoll_recv_many
, merged with #6236. StreamMap doesn't offer anything like this.Describe the solution you'd like
An api like
https://docs.rs/tokio/latest/tokio/sync/mpsc/struct.Receiver.html#method.recv_many
https://docs.rs/tokio/latest/tokio/sync/mpsc/struct.Receiver.html#method.poll_recv_many
Describe alternatives you've considered
My current hacked up solution
Tests:
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: