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

Introduce Timeout.waitUntil(monitor, condition: () -> Boolean) #811

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

martinbonnin
Copy link
Contributor

Similar to waitUntilNotified except it accounts for spurious wake ups and bad timer resolutions.

Use it in Pipe where the bad timer resolution on Windows could make the Pipe wait way longer than it should because the wait would return a few nanoseconds early very often and the read/write loop would continue looping, waiting several times the nominal Timeout value

@martinbonnin martinbonnin mentioned this pull request Nov 9, 2020
@yschimke
Copy link
Collaborator

yschimke commented Jan 4, 2023

If we go ahead with #1176, might be worth waiting on this.

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