1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-10 03:55:41 +00:00

Call ConfigureAwait(false)

This commit is contained in:
Oliver Booth 2022-11-29 18:55:00 +00:00
parent e656436519
commit 7fe303c4eb
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
2 changed files with 5 additions and 5 deletions

View File

@ -49,7 +49,7 @@ public class VirtualParadiseModelObject : VirtualParadiseObject
ArgumentNullException.ThrowIfNull(action);
var builder = new VirtualParadiseModelObjectBuilder(Client, ObjectBuilderMode.Modify);
await Task.Run(() => action(builder)).ConfigureAwait(true);
await Task.Run(() => action(builder)).ConfigureAwait(false);
lock (Client.Lock)
{

View File

@ -105,16 +105,16 @@ public abstract class VirtualParadiseObject : IEquatable<VirtualParadiseObject>
switch (phase)
{
case BumpPhase.Begin:
await SendBegin().ConfigureAwait(true);
await SendBegin().ConfigureAwait(false);
break;
case BumpPhase.End:
await SendEnd().ConfigureAwait(true);
await SendEnd().ConfigureAwait(false);
break;
case null:
await SendBegin().ConfigureAwait(true);
await SendEnd().ConfigureAwait(true);
await SendBegin().ConfigureAwait(false);
await SendEnd().ConfigureAwait(false);
break;
}
}