diff options
author | James Newton-King <james@newtonking.com> | 2022-08-01 05:05:10 +0300 |
---|---|---|
committer | James Newton-King <james@newtonking.com> | 2022-08-01 05:05:10 +0300 |
commit | 1e7b47499aa721b376d95e468ee50cddcc97651a (patch) | |
tree | f608ccf3ea1aab3285bca8425a05591c94b2ec9c | |
parent | d46257750c701f63cb45fd28ee65348543cd7268 (diff) |
-rw-r--r-- | src/Servers/Kestrel/Transport.Quic/src/Internal/QuicStreamContext.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Servers/Kestrel/Transport.Quic/src/Internal/QuicStreamContext.cs b/src/Servers/Kestrel/Transport.Quic/src/Internal/QuicStreamContext.cs index 3299979aa3..ae98fe148d 100644 --- a/src/Servers/Kestrel/Transport.Quic/src/Internal/QuicStreamContext.cs +++ b/src/Servers/Kestrel/Transport.Quic/src/Internal/QuicStreamContext.cs @@ -18,7 +18,7 @@ internal partial class QuicStreamContext : TransportConnection, IPooledStream, I private static readonly ConnectionAbortedException SendGracefullyCompletedException = new ConnectionAbortedException("The QUIC transport's send loop completed gracefully."); // Internal for testing. - internal ValueTask _processingTask = ValueTask.CompletedTask; + internal Task _processingTask = Task.CompletedTask; private QuicStream? _stream; private readonly QuicConnectionContext _connection; @@ -142,14 +142,10 @@ internal partial class QuicStreamContext : TransportConnection, IPooledStream, I { Debug.Assert(_processingTask.IsCompletedSuccessfully); -#pragma warning disable CA2012 // Use ValueTasks correctly - // The processing task is awaited in DisposeAsync. _processingTask = StartAsync(); -#pragma warning restore CA2012 // Use ValueTasks correctly } - [AsyncMethodBuilder(typeof(PoolingAsyncValueTaskMethodBuilder))] - private async ValueTask StartAsync() + private async Task StartAsync() { Debug.Assert(_stream != null); |