You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add AsyncSeq.sortByAsync and sortByDescendingAsync
Adds two new async sorting functions that mirror the existing 'Async' variants
pattern of minByAsync, maxByAsync, and countByAsync:
- sortByAsync: sorts by an async key projection, returning Async<array<'T>>
- sortByDescendingAsync: same but in descending order
Both functions compute each key exactly once per element, then sort.
5 new tests added; all 326 tests pass.
Co-authored-by: Copilot <[email protected]>
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,8 @@
1
+
### 4.10.1
2
+
3
+
* Added `AsyncSeq.sortByAsync` — sorts an async sequence by an asynchronous key-generating function, computing each key exactly once and returning a sorted array. Mirrors the `*Async` pattern of `minByAsync`, `maxByAsync`, and `countByAsync`.
4
+
* Added `AsyncSeq.sortByDescendingAsync` — same as `sortByAsync` but orders descending.
5
+
1
6
### 4.10.0
2
7
3
8
* Added `AsyncSeq.withCancellation` — returns a new `AsyncSeq` that passes the given `CancellationToken` to `GetAsyncEnumerator`, overriding whatever token would otherwise be supplied. Mirrors `TaskSeq.withCancellation` and is useful when consuming sequences from libraries (e.g. Entity Framework) that accept a cancellation token through `GetAsyncEnumerator`. Part of ongoing design-parity work with FSharp.Control.TaskSeq (see #277).
0 commit comments