System.Net.TimerThread.InfiniteTimer.Cancel C# (CSharp) Method

Cancel() private method

Cancels the timer. Returns true the first time, false after that.

private Cancel ( ) : bool
return bool
            internal override bool Cancel()
            {
                return Interlocked.Exchange(ref _cancelled, 1) == 0;
            }
        }
TimerThread.InfiniteTimer