-
Notifications
You must be signed in to change notification settings - Fork 37
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
How to identify if the Ticker has already been triggered at least once? #55
Comments
There is no internal solution. Maybe you create two tickers with the first to shoot only once. |
Forgot, there is also counter() function, which gives you back the ticks count. |
Why didn't you trigger the callback function manually? |
Maybe the https://github.com/philbowles/H4#introduction
Thanks for developing Ticker |
My goal is to identify whether Ticker has already been called to handle its interval().
That is, identifying the first ticker trigger and being able to manipulate the interval with interval().
Example: I would like a callback to fire at the very beginning of the loop execution and then every 300 seconds (5 minutes).
I currently use a global variable for this, but I would like to know if Ticker has any features or can implement some solution so that the global variable is not needed.
Ex:
The text was updated successfully, but these errors were encountered: