Skip to content

Commit

Permalink
Pool the missing ReadAsync state machine (dotnet#41345)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl authored Apr 25, 2022
1 parent 7687a8d commit b6c5b57
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System.Buffers;
using System.Runtime.CompilerServices;
using Microsoft.AspNetCore.Connections;
using Microsoft.AspNetCore.Http.Features;

Expand Down Expand Up @@ -109,6 +110,7 @@ private ValueTask<int> ReadAsyncWrapper(Memory<byte> destination, CancellationTo
}
}

[AsyncMethodBuilder(typeof(PoolingAsyncValueTaskMethodBuilder<>))]
private async ValueTask<int> ReadAsyncInternal(Memory<byte> destination, CancellationToken cancellationToken)
{
while (true)
Expand Down

0 comments on commit b6c5b57

Please sign in to comment.