[PTRun] Implement thread-safety in query results task with lock (#34009)

* [PTRun] Implement thread-safety in query results task with lock

* [PTRun] Lock is moved to Unit Converter Query function.

* [PTRun]  _updateSource.Token is used instead of local currentCancellationToken to avoid dangling reference.
This commit is contained in:
gokcekantarci
2024-08-22 17:11:59 +03:00
committed by GitHub
parent 744c53cfcd
commit bfa35d65a4
2 changed files with 17 additions and 19 deletions

View File

@@ -50,7 +50,6 @@ namespace Community.PowerToys.Run.Plugin.UnitConverter
return new List<Result>();
}
// Convert
return UnitHandler.Convert(convertModel)
.Select(x => GetResult(x))
.ToList();