Skip to content

Commit 164f9e7

Browse files
committed
Fix: Add ConfigureAwait(false) to Interaction.cs to prevent deadlocks
1 parent 7dadf2e commit 164f9e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ReactiveUI/Interactions/Interaction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2009-2026 .NET Foundation and Contributors. All rights reserved.
1+
// Copyright (c) 2009-2026 .NET Foundation and Contributors. All rights reserved.
22
// Licensed to the .NET Foundation under one or more agreements.
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.
@@ -124,7 +124,7 @@ IObservable<Unit> ContentHandler(IInteractionContext<TInput, TOutput> interactio
124124

125125
async Task InvokeAsync(IInteractionContext<TInput, TOutput> interaction)
126126
{
127-
await YieldToCurrentContext();
127+
await YieldToCurrentContext().ConfigureAwait(false);
128128
await handler(interaction).ConfigureAwait(false);
129129
}
130130
}

0 commit comments

Comments
 (0)