KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a List<System.Threading.Timer> . Each Timer fires at a configurable interval (default 10 minutes). All call the same callback method (with a different parameter). The callback method can take several seconds to complete it's work. When the program terminates, it looks like execution of the callback method is immediately halted (am I seeing that correctly?). How can I elegantly wait for any currently-executing callback methods to complete before exiting the program?
Tags (comma-separated)
Save Edits
Cancel