add ConfigureAwait

pull/12099/head
Jan Tattermusch 7 years ago
parent a7ca866887
commit 5250e06890
  1. 2
      src/csharp/Grpc.Core/GrpcEnvironment.cs

@ -321,7 +321,7 @@ namespace Grpc.Core
throw new InvalidOperationException("ShutdownAsync has already been called"); throw new InvalidOperationException("ShutdownAsync has already been called");
} }
await Task.Run(() => ShuttingDown?.Invoke(this, null)); await Task.Run(() => ShuttingDown?.Invoke(this, null)).ConfigureAwait(false);
await threadPool.StopAsync().ConfigureAwait(false); await threadPool.StopAsync().ConfigureAwait(false);
GrpcNativeShutdown(); GrpcNativeShutdown();

Loading…
Cancel
Save