setInterval OR setTimeout: Am I understanding this right?,
Members - Reputation: 141
Posted 29 October 2012 - 02:02 AM
If I use setInterval to call a function every second, and the funtion takes 2 seconds to process. Then I am going to "stack up" requests indefinelty? and creating a longer and longer delay?
If I use setTimeout, and specify 1 second. Then the function will run (again, lets say 2 seconds) and then start the timeout. And not stack up requests.