Skip to content

Commit 99317e2

Browse files
authored
Merge pull request #44013 from sharwell/rm-doevents
Remove unnecessary DoEvents call
2 parents c64c966 + 3ce396c commit 99317e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Workspaces/CoreTestUtilities/AsynchronousOperationListenerExtensions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
#nullable enable
66

77
using System.Threading.Tasks;
8-
using System.Windows.Threading;
98
using Microsoft.CodeAnalysis.Shared.TestHooks;
109

1110
namespace Roslyn.Test.Utilities
1211
{
1312
public static class AsynchronousOperationListenerExtensions
1413
{
1514
internal static Task WaitAllDispatcherOperationAndTasksAsync(this IAsynchronousOperationListenerProvider provider, params string[] featureNames)
16-
=> ((AsynchronousOperationListenerProvider)provider).WaitAllAsync(featureNames, eventProcessingAction: () => Dispatcher.CurrentDispatcher.DoEvents());
15+
=> ((AsynchronousOperationListenerProvider)provider).WaitAllAsync(featureNames);
1716

1817
internal static IAsynchronousOperationWaiter GetWaiter(this IAsynchronousOperationListenerProvider provider, string featureName)
1918
=> (IAsynchronousOperationWaiter)provider.GetListener(featureName);

0 commit comments

Comments
 (0)