Tokio TcpListener, Using accept without blocking or creating a new task?

I'm new to tokio and async in general, I kept trying to find a way but couldn't find any, There is poll_accept but I am unsure of how to use and if it does what I want because there are no examples as far as I'm aware, For reference, I'm looking for something like TcpStream.try_read/try_write.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.