mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-10 03:55:41 +00:00
Call ConfigureAwait(false)
This commit is contained in:
parent
e656436519
commit
7fe303c4eb
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user