Skip to content

Comments

[Auto Maintainer Assistant] Allow AsyncSeq.mergeAll to accept seq instead of list#221

Merged
dsyme merged 2 commits intomainfrom
co-maintainer/mergeall-accept-seq-9921c501a078d92a
Feb 21, 2026
Merged

[Auto Maintainer Assistant] Allow AsyncSeq.mergeAll to accept seq instead of list#221
dsyme merged 2 commits intomainfrom
co-maintainer/mergeall-accept-seq-9921c501a078d92a

Conversation

@github-actions
Copy link
Contributor

🤖 This PR was created by the repository's automated AI maintenance assistant.

Closes #165

Summary

Widens the parameter type of AsyncSeq.mergeAll from AsyncSeq<'T> list to seq(AsyncSeq<'T)>. This is a backward-compatible change since list implements seq in F#.

This allows callers to pass arrays (e.g. results of Async.Parallel), other collection types, or any seq<_> without needing an explicit conversion to list.

Changes

  • AsyncSeq.fs: Changed parameter type to seq(AsyncSeq<'T)> and added let ss = Seq.toArray ss at the start of the function body (needed since the implementation uses indexed access and .Length internally).
  • AsyncSeq.fsi: Updated signature to match.

Test Status

  • Debug build passes (dotnet build -c Debug)
  • Release build passes (dotnet build -c Release)
  • Debug tests pass (dotnet test -c Debug) — 182/182
  • Release tests pass (dotnet test -c Release) — 182/182

Generated by Auto Maintainer Assistant

Widen the parameter type of AsyncSeq.mergeAll from 'AsyncSeq<'T> list'
to 'seq<AsyncSeq<'T>>'. This is backward-compatible since list implements
seq in F#, but also allows callers to pass arrays, other collections, or
lazy sequences without needing an explicit conversion.

The implementation materialises the seq to an array immediately since
random-access (indexed look-up) and Length are needed internally.

Closes #165

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dsyme dsyme marked this pull request as ready for review February 21, 2026 03:18
@dsyme dsyme merged commit 0087ccc into main Feb 21, 2026
1 check passed
github-actions bot pushed a commit that referenced this pull request Feb 21, 2026
Update version.props to 3.3.1 and update RELEASE_NOTES.md to include
chunkBy/chunkByAsync (PR #222) and mergeAll seq widening (PR #221)
alongside the previously documented improvements.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant