I have a method that I want to call a method (will mention as myFanc) in seperated thread every 3 seconds
The code below can easly do it,
Timer myTimer = new Timer();
myTimer.Elapsed += new ElapsedEventHandler( myFanc );
myTimer.Interval = 3000;
myTimer.Start();
The code above may cause myFanc to be called while another call to myFanc isn't finished yet
My problem is that I also want myFanc to finished before I will call her agian, so basically I want to call the method in seperated thread every 3 seconds after myFanc is finished, how can I do it?
I don't mind if the solution won't use Timer class, I just want this behavior to work..