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

[Question] setInterval on the fly #40

Open
zytra opened this issue Mar 14, 2019 · 2 comments
Open

[Question] setInterval on the fly #40

zytra opened this issue Mar 14, 2019 · 2 comments

Comments

@zytra
Copy link

zytra commented Mar 14, 2019

Hey there,
I am using this library with great success, thank you!
I am wondering if there is any way to programmatically change the interval time at which a thread runs at without having to remove the thread, set interval, and then re-add it to the thread controller?

@joaopedrovbs
Copy link

Hello @zytra you just need to use [nameOfYourThreadObject].setInterval(time) whenever you want in your code, this will change the thread interval without the need to remove and re-add.

@zytra
Copy link
Author

zytra commented Mar 21, 2019

Thank you @joaopedrovbs I am going to see if it removes the glitches I am seeing now. Up until now I was clearing the thread controller, adjusting interval and re-adding the threads to the thread controller.
thank you

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

No branches or pull requests

2 participants