private async Task StressTestCollection(ConcurrentObservableCollection <string> collection) { _stopStressTest = false; await Task.Factory.StartNew(() => { while (!_stopStressTest) { collection.AddRange(Enumerable.Range(1, 1000).Select(x => $"{x}").ToList()); while (collection.Count > 0) { collection.RemoveLast(); } Thread.Sleep(200); } }); }