Closed JamieKitson closed 2 years ago
Compare:
public void Tick(TimeSpan estimatedDuration, string message = null) { Interlocked.Increment(ref _currentTick); FinishTick(message); } public void Tick(int newTickCount, TimeSpan estimatedDuration, string message = null) { Interlocked.Exchange(ref _currentTick, newTickCount); _estimatedDuration = estimatedDuration; FinishTick(message); }
https://github.com/Mpdreamz/shellprogressbar/blob/c28355ff87d9ef277261a22cdfa91be2789a7fd0/src/ShellProgressBar/ProgressBarBase.cs#L127
Compare:
https://github.com/Mpdreamz/shellprogressbar/blob/c28355ff87d9ef277261a22cdfa91be2789a7fd0/src/ShellProgressBar/ProgressBarBase.cs#L127