Possible Duplicate:
How do I schedule a task to run at periodic intervals?
What I need to do is have a recurring task that updates a list every few configurable number of minutes. I want to wait for the task to finish and after it is finished it will return to the caller class and continue running the program. Also the caller class has an infinite loop because the application is intended to never stop. I had no luck with Timer class and I tried Quartz but that was worse than the Timer to implement successfully.
Has anyone had the same problem as I have and succeeded in creating a scheduler that handles recurring tasks and the caller class waits for it to finish the task when the time starts?