Skip to content

Commit 0ef673b

Browse files
Simplified async read operation as prefetching had no real benefit.
1 parent 623ea38 commit 0ef673b

File tree

4 files changed

+104
-5
lines changed

4 files changed

+104
-5
lines changed

.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
root = true
2+
13
# C# files
24
[*.cs]
35

Open.ChannelExtensions/Documentation.xml

Lines changed: 100 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Open.ChannelExtensions/Extensions.Read.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,12 @@ public static async ValueTask<long> ReadUntilCancelledAsync<T>(this ChannelReade
9797
{
9898
do
9999
{
100-
var next = new ValueTask();
101100
while (
102101
!cancellationToken.IsCancellationRequested
103102
&& reader.TryRead(out T? item))
104103
{
105-
await next.ConfigureAwait(false);
106-
next = receiver(item, index++);
104+
await receiver(item, index++).ConfigureAwait(false);
107105
}
108-
await next.ConfigureAwait(false);
109106
}
110107
while (
111108
!cancellationToken.IsCancellationRequested

Open.ChannelExtensions/Open.ChannelExtensions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<RepositoryUrl>https://github.com/Open-NET-Libraries/Open.ChannelExtensions</RepositoryUrl>
2222
<RepositoryType>git</RepositoryType>
2323
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
24-
<Version>6.0.0</Version>
24+
<Version>6.0.1</Version>
2525
<PackageReleaseNotes></PackageReleaseNotes>
2626
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2727
<PublishRepositoryUrl>true</PublishRepositoryUrl>

0 commit comments

Comments
 (0)