Skip to content

Why is there no tokio-sink? #5470

Answered by Darksonn
byte-sourcerer asked this question in Q&A
Discussion options

You must be logged in to vote

There are some Sink implementations in tokio-util, e.g. there's PollSender for the mspc channel. There isn't one for the broadcast channel.

In general, streams are used much more often than sinks, which is why they have a dedicated crate.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by byte-sourcerer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants