async void _subreddits_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
{
if(_suspendSaving)
return;
int retryCount = 0;
while (_currentlySavingSubreddits && retryCount++ < 10)
{
await Task.Delay(100);
}
if (_currentlySavingSubreddits)
return;
try
{
_currentlySavingSubreddits = true;
await SaveSubreddits();
}
catch { }
finally
{
_currentlySavingSubreddits = false;
}
}