I am start using C# System.Threading.Timer class. When the timer is already started and I am in the middle of the execution of my TimerCallback I specified, what does happen when I stop the timer using myTimer.Change(Timeout.Infinite, 0).
My callback finishes execution or it is aborted immediately?
If it is not aborted there is a way to perform something similar to Thread.Abort for the immediate killing of the code to execute?
Your callback is not aborted, it finishes execution.
If you want to stop executing, simply
returnfrom the function.