Skip to content

Commit 3b4e33b

Browse files
committed
Codacy issues fix.
1 parent b55c045 commit 3b4e33b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ConcurrentQueueExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static async Task AwaitAll(this ConcurrentQueue<Task> queue)
2323
{
2424
foreach (var item in queue.DequeueAll())
2525
{
26-
await item;
26+
await item.ConfigureAwait(continueOnCapturedContext: false);
2727
}
2828
}
2929

@@ -38,7 +38,7 @@ public static async Task AwaitOne(this ConcurrentQueue<Task> queue)
3838
{
3939
if (queue.TryDequeue(out Task item))
4040
{
41-
await item;
41+
await item.ConfigureAwait(continueOnCapturedContext: false);
4242
}
4343
}
4444

0 commit comments

Comments
 (0)