Skip to content

core: ResettableTimer. #1994

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

Closed
wants to merge 8 commits into from
Closed

Conversation

zhangkun83
Copy link
Contributor

A timer that is optimized for being reset frequently, useful for #1986 and #1992.

@zsurocking FYI

A timer that is optimized for being reset frequently, useful for grpc#1986
and grpc#1992.
* Returns {@code true} if the current run is cancelled (either by {@link #stop} or {@link
* #resetAndStart}).
*/
boolean isCancelled() {
Copy link
Member

Choose a reason for hiding this comment

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

Why not just make this a method on ResettableTimer?

Copy link
Member

Choose a reason for hiding this comment

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

Oh. I guess I see, since it is reused. I'll look deeper.

@zhangkun83 zhangkun83 closed this Aug 1, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants