-
Sorry for my english It seems like if I want to use Stream (trait from future crate) I should use |
Beta Was this translation helpful? Give feedback.
Answered by
Darksonn
Aug 12, 2022
Replies: 1 comment 3 replies
-
All types in Tokio that can be converted to a |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
doowonee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All types in Tokio that can be converted to a
Stream
using thetokio-stream
crate have a method that does the same as what.next()
does when converted to aStream
. However, it will usually have a different name — for example, the method is calledrecv
onmpsc::Receiver
.