Results 1 to 4 of 4
Jun 22, 2007, 19:20 #1
- Join Date
- Oct 2005
- 0 Post(s)
- 0 Thread(s)
Can I set timeout for a loop iteration
I have a while loop that fetches data from a mysql table and in each iteration it does many different things using many functions and classes.
The problem is that sometimes it gets stuck (maybe trying to open or read a file), so is there any way to skip the current iteration if it gets stuck by setting a timeout?
Can I set a timeout for a while loop so that if at any iteration that timeout limit is reached it'd continue to the next iteration?