Skip to content

Add note about zero timeout for Poll::poll#1935

Open
WhySoBad wants to merge 1 commit intotokio-rs:masterfrom
WhySoBad:master
Open

Add note about zero timeout for Poll::poll#1935
WhySoBad wants to merge 1 commit intotokio-rs:masterfrom
WhySoBad:master

Conversation

@WhySoBad
Copy link

@WhySoBad WhySoBad commented Mar 4, 2026

Hi,

This pull request adds a small note to the documentation of Poll::poll which elaborates that a zero timeout will not be rounded up.

I'm going to use Mio for a project and from reading the documentation it wasn't clear to me whether a zero timeout will also be rounded up to the next millisecond. I had to go look into the source code and thus I think it would be nice to have this small additional note.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants