We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.ToArray()
ConcurrentDictionary
1 parent 16e032e commit 4e3d713Copy full SHA for 4e3d713
Flow.Launcher.Infrastructure/Image/ImageCache.cs
@@ -74,7 +74,7 @@ async void SliceExtra()
74
// To delete the images from the data dictionary based on the resizing of the Usage Dictionary
75
// Double Check to avoid concurrent remove
76
if (Data.Count > permissibleFactor * MaxCached)
77
- foreach (var key in Data.OrderBy(x => x.Value.usage).Take(Data.Count - MaxCached).Select(x => x.Key).ToArray())
+ foreach (var key in Data.OrderBy(x => x.Value.usage).Take(Data.Count - MaxCached).Select(x => x.Key))
78
Data.TryRemove(key, out _);
79
semaphore.Release();
80
}
0 commit comments