I ran the provided code exactly as it is. Functions (fun1, fun2, fun3, finalone) get executed at the time, provided as an argument to addEvent.
How do you recommend me to modify the code, so a function gets executed repeatedly with a fixed interval, not just once?
It would stop executing after a certain condition is met.
I see there is a count variable within addEvent function, but altering it has no effect.
Correction, it has effect, just not expected one. It delays function execution.
How do you recommend me to modify the code, so a function gets executed repeatedly with a fixed interval, not just once?
It would stop executing after a certain condition is met.
I see there is a count variable within addEvent function, but altering it has no effect.
Correction, it has effect, just not expected one. It delays function execution.