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

google#1409 Add poll() and offer() to Uninterruptibles class #4034

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

Conversation

tanmayvarun
Copy link
Contributor

No description provided.

@google-cla google-cla bot added the cla: yes label Sep 19, 2020
@tanmayvarun
Copy link
Contributor Author

Any updates?

@cpovirk
Copy link
Member

cpovirk commented Sep 28, 2020

I still probably won't have a chance for a while, but it's on my to-do list.

@tanmayvarun
Copy link
Contributor Author

I still probably won't have a chance for a while, but it's on my to-do list.

Works bro, I don't have slightest clue how full is your plate 👍

@tanmayvarun
Copy link
Contributor Author

@cpovirk Can you please review and possibly close this!

@cpovirk
Copy link
Member

cpovirk commented Oct 14, 2020

It's still on my list, just still behind some other things :(

@tanmayvarun
Copy link
Contributor Author

@cpovirk Sorry again, I was waiting for my first PR accepted, that has happened so I am fine!

Please suggest some feature development problems to work on..

@cpovirk
Copy link
Member

cpovirk commented Oct 14, 2020

Sorry for the delay on the other one, which was simple enough that I should have accepted it more quickly.

I'll let you know if I think of some more ideas.

@tanmayvarun
Copy link
Contributor Author

Sure Ack.

@tanmayvarun
Copy link
Contributor Author

Sorry for the delay on the other one, which was simple enough that I should have accepted it more quickly.

I'll let you know if I think of some more ideas.

@cpovirk any issues/features you suggest?

@cpovirk
Copy link
Member

cpovirk commented Nov 2, 2020

The one thing that comes to mind is a Dependabot config (like this one) for https://github.com/google/caliper. But before doing that, we'd really like to update all our dependencies (mvn org.codehaus.mojo:versions-maven-plugin:2.8.1:update-properties org.codehaus.mojo:versions-maven-plugin:2.8.1:use-latest-releases, similar to this commit) and all our plugins (which may be easiest to do by hand).

@cpovirk
Copy link
Member

cpovirk commented Nov 10, 2020

Also #3679

@tanmayvarun
Copy link
Contributor Author

@cpovirk Sure will take up #3679 first as it seems quick fix.

Copy link
Member

@cpovirk cpovirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for taking so long on this. The main thing that these implementations will need to do is to track how much time has passed. Currently, they always pass the original timeout to the delegate. But when that call is interrupted, they should pass only how much time is left. You can see how to set that up here;

long remainingNanos = unit.toNanos(timeout);

@tanmayvarun
Copy link
Contributor Author

@cpovirk I have updated offer, poll functions adding timeout update as required. Please check.

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

Successfully merging this pull request may close these issues.

3 participants