Skip to content

Commit

Permalink
Merge pull request #760 from rabbitmq/rabbitmq-dotnet-client-341-Task…
Browse files Browse the repository at this point in the history
…_Yield

Yield to prevent deadlocks
  • Loading branch information
lukebakken authored Mar 17, 2020
2 parents 313e1e8 + 77eb7f5 commit 924003e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/client/RabbitMQ.Client/src/client/impl/Work.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public async Task Execute(ModelBase model)
{
try
{
await Task.Yield();
await Execute(model, _asyncConsumer).ConfigureAwait(false);
}
catch (Exception)
Expand Down

0 comments on commit 924003e

Please sign in to comment.