Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Again less truncating for timeout values in Poll::poll #1642

Merged
merged 1 commit into from
Dec 27, 2022

Conversation

tbu-
Copy link
Contributor

@tbu- tbu- commented Dec 25, 2022

Round up submillisecond wait times to the next millisecond on platforms where submillisecond sleep times aren't supported. This makes the behavior actually match the documentation.

See also #420, where this was implemented for the first time.

Round up submillisecond wait times to the next millisecond on platforms
where submillisecond sleep times aren't supported. This makes the
behavior actually match the documentation.

See also tokio-rs#420, where this was implemented for the first time.
@tbu- tbu- force-pushed the pr_timeout_less_truncating2 branch from fbfb0f2 to f48a6c1 Compare December 25, 2022 23:32
@Thomasdezeeuw
Copy link
Collaborator

Didn't #1615 and #1616 fix this?

@tbu-
Copy link
Contributor Author

tbu- commented Dec 26, 2022

Only for the special case of waiting between 0ms and 1ms.

@Thomasdezeeuw Thomasdezeeuw merged commit 533c040 into tokio-rs:master Dec 27, 2022
@Thomasdezeeuw
Copy link
Collaborator

Thanks @tbu-

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.

None yet

2 participants