mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Refactoring multithreading
1. ThreadPool -> Task 2. fix deadlock 3. remove unnecessory application.dispatcher.invoke 4. enable non-main thread access to results collection 5. Misc 6. part of #412
This commit is contained in:
@@ -106,7 +106,7 @@ namespace Wox.Infrastructure.Image
|
||||
img.Freeze();
|
||||
ImageSources[icon] = img;
|
||||
}
|
||||
Task.Factory.StartNew(() =>
|
||||
Task.Run(() =>
|
||||
{
|
||||
Stopwatch.Debug("Preload images from cache", () =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user