mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
Fix for:
Severity Code Description Project File Line Suppression State Warning CA2007 Consider calling ConfigureAwait on the awaited task PowerLauncher C:\Repos\PowerToys\src\modules\launcher\PowerLauncher\MainWindow.xaml.cs 305 Active
This commit is contained in:
parent
10d6a1fa54
commit
a29baf19d0
@ -313,7 +313,7 @@ namespace PowerLauncher
|
||||
|
||||
private async Task DelayedCheck(DateTime latestTimeOfTyping)
|
||||
{
|
||||
await Task.Delay(millisecondsToWait);
|
||||
await Task.Delay(millisecondsToWait).ConfigureAwait(false);
|
||||
if (latestTimeOfTyping.Equals(s_lastTimeOfTyping))
|
||||
{
|
||||
await System.Windows.Application.Current.Dispatcher.BeginInvoke(new Action(() =>
|
||||
|
Loading…
Reference in New Issue
Block a user