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

some confuse about setTimer #2887

Closed
User979269852 opened this issue Mar 25, 2019 · 2 comments
Closed

some confuse about setTimer #2887

User979269852 opened this issue Mar 25, 2019 · 2 comments
Labels

Comments

@User979269852
Copy link

recently such a problem came to me,I write my code like this:
public void test(){
vertx.setTimer(10000,handle -> {
try{
// do something;
test();
} catch(e){
test();
}
});
}
but amazingly I found that the timer would exit after it work for several times. Do anyone know why? Thanks a lot.

@vietj
Copy link
Member

vietj commented Mar 25, 2019

what do you mean by "exit" ?

@vietj vietj added the question label Mar 25, 2019
@vietj vietj closed this as completed Mar 25, 2019
@User979269852
Copy link
Author

I wish the timer all the time.but “something “happened and the timer did not work in next 10s,I wonder what “something” was

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

No branches or pull requests

2 participants