mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
[Refactor] Update Task.Run usage to await and discard returned tasks.
Fixes some race conditions.
This commit is contained in:
@@ -58,8 +58,7 @@ public sealed class AboutViewModel : ViewModelBase
|
||||
|
||||
Assemblies = [];
|
||||
|
||||
// TODO: They do not load in time
|
||||
Task.Run(() =>
|
||||
_ = Task.Run(() =>
|
||||
{
|
||||
foreach(Assembly assembly in AppDomain.CurrentDomain.GetAssemblies().OrderBy(a => a.FullName))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user