Brass9.Threading.TimerInfo.Stop C# (CSharp) Method

Stop() public method

public Stop ( ) : void
return void
		public void Stop()
		{
			SetInterval(Timeout.Infinite);
		}
	}

Usage Example

Example #1
0
 /// <summary>
 /// Stops the timer. If the background task is running when this is called, it's
 /// left be so it can finish it's work, but will not be woken up to start again
 /// until SetTimerInterval() is called with a positive value.
 ///
 /// Convenience method. This has the same effect as calling
 /// SetTimerInterval(Timeout.Infinite);
 /// </summary>
 public void StopTimer()
 {
     intervalTimer.Stop();
 }