Skip to content

Restore Chunk with result selector for IAsyncEnumerable - #881

Open
wxxb789 wants to merge 1 commit into
polyadic:mainfrom
wxxb789:async-chunk
Open

Restore Chunk with result selector for IAsyncEnumerable#881
wxxb789 wants to merge 1 commit into
polyadic:mainfrom
wxxb789:async-chunk

Conversation

@wxxb789

@wxxb789 wxxb789 commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

The Chunk overloads on IAsyncEnumerable were not carried over when Funcky.Async was integrated into Funcky, so they are missing from Funcky 3.6 on net10.0 while they still exist in Funcky.Async 1.4.1.

.NET 10 ships AsyncEnumerable.Chunk(source, size) (including the validation of size), so I did not port the overload without a result selector — it would be shadowed by the BCL one. The three overloads taking a result selector have no BCL equivalent and are restored here.

SelectAwait does not exist in System.Linq.AsyncEnumerable, so ChunkAwait uses the Select overload taking a CancellationToken instead, the same way WhereSelectAwait does.

The `Chunk` overloads taking a result selector were lost when
Funcky.Async was integrated into Funcky. .NET 10 provides
`AsyncEnumerable.Chunk(source, size)`, but no selector overloads.
@FreeApophis

FreeApophis commented Aug 31, 2026

Copy link
Copy Markdown
Member

Thank you for your contribution, I'll take a look tomorrow.

@FreeApophis FreeApophis self-assigned this Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants