Alternative for tokio::net::TcpListener.incoming().poll_next(...)
in tokio 0.3
#2983
Answered
by
taiki-e
Urhengulas
asked this question in
Q&A
-
How can |
Beta Was this translation helpful? Give feedback.
Answered by
taiki-e
Oct 17, 2020
Replies: 1 comment 1 reply
-
You can use let next = ready!(Pin::new(&mut self.as_mut().project().listener).poll_accept(cx)?).0; |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Darksonn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
poll_accept
, like: