Skip to content

Commit 89e7c93

Browse files
committed
Godot InvokeAsync ConfigureAwait false
1 parent 350a9d9 commit 89e7c93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SharpIDE.Godot/NodeExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public Task InvokeAsync(Func<Task> workItem)
229229
{
230230
try
231231
{
232-
await workItem();
232+
await workItem().ConfigureAwait(false);
233233
taskCompletionSource.SetResult();
234234
}
235235
catch (Exception ex)
@@ -267,7 +267,7 @@ public Task InvokeDeferredAsync(Func<Task> workItem)
267267
{
268268
try
269269
{
270-
await workItem();
270+
await workItem().ConfigureAwait(false);
271271
taskCompletionSource.SetResult();
272272
}
273273
catch (Exception ex)

0 commit comments

Comments
 (0)