You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fact, the optional parameters doesn't work, because the timer doesn't get called after 1 second and gets called more than 3 times.
Two bugs (sorry), if you want I can open another issue..
The text was updated successfully, but these errors were encountered:
I fixed the first of these, then I looked at the second. I couldn't work out for a while how it was supposed to work, then I realised that isn't supported syntax. I can't remember if that was the plan at some point and I mentioned it somewhere, but it isn't in right now. The syntax there makes this timer a task, so it runs automatically and forever. The .repeat and .initial parameters are ignored. If they were used for a normal timer there's currently only defer and repeat to start a timer, neither of which really make sense with a repeat count. Unifying y_timers and y_inline_timers would be best, I'm just not sure how right now.
The print function will be called twice with this code:
Console output:
You can see the
print
function gets called twice every 5 seconds.This piece of code will run just fine:
Console output:
Fact, the optional parameters doesn't work, because the timer doesn't get called after 1 second and gets called more than 3 times.
Two bugs (sorry), if you want I can open another issue..
The text was updated successfully, but these errors were encountered: