Java - 'continue' loop iteration after certain timeout period
- by Matt
Is there a way to exit ('continue;') a loop iteration after a certain timeout period?
I have a loop that will run gathering data from the web and then use this data to make a calculation.
The data become obsolete after about 1 to 2 seconds so if the loop iteration takes longer than 1 second then i want it to 'continue' to the next iteration.
…