Replies: 1 comment
-
There's no utility for this. You'll have to implement it yourself, e.g. with a loop like this: while let Some(msg) = stream.next().await {
sinks[pick_sink()].send(msg).await;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://docs.rs/futures-util/0.3.28/futures_util/stream/trait.StreamExt.html#method.forward
Is there something to define a custom
Sink
likestream!
, or wrap severalSink
s in one?Beta Was this translation helpful? Give feedback.
All reactions