Update docs to use tokio's recv instead of next
Opened this issue · 2 comments
Deleted user commented
Update the docs tokio's recv() instead of next(). https://tokio-rs.github.io/tokio/doc/tokio/sync/mpsc/struct.UnboundedReceiver.html
RAnders00 commented
Unless I'm missing something, next()
is the same as recv()
, except that for next()
you have to have StreamExt
in scope, correct?
In that case, I agree, the documentation will be updated to use recv.
Deleted user commented
I believe that is correct yes. I found when following the examples to the letter, with tokio v 0.2.22 due to other dependencies in my project it refused to compile. switching to recv()
was the simplest fix in my case.