mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Await async delegates fully in DispatcherHelper
Ensure that async functions invoked via dispatcher are awaited until completion, not just until scheduled, by using double await on InvokeAsync. This prevents premature continuation when the delegate itself is asynchronous.
This commit is contained in:
parent
7c55986b24
commit
fc147c3377
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ public static class DispatcherHelper
|
|||
}
|
||||
else
|
||||
{
|
||||
await dispatcher.InvokeAsync(func, priority);
|
||||
await await dispatcher.InvokeAsync(func, priority);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue