Timers FireTimeout, FireInterval
Voltaism
Firing a timeout / Interval right away, calls the associated function (and resets wait time for the interval).
Instead of having to ClearTimeout and call the function, nested functions without reference are annoying when you don't want to change them...
For example when voting, there is a max voting time (With a Timeout) but if everyone voted, fire the Timeout that was going to start the next round.
T
Timmy
https://feedback.nanos-world.com/ideas/p/add-timeradjust
Voltaism
Timmy Your solution will call it next tick, mine does it at current tick
T
Timmy
Voltaism ah got it now! then both options would be great imo
also my option would call the callback, but change the time left before it's called