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
[Repo Assist] Add AsyncSeq.withCancellation (design parity with TaskSeq, #277) (#278)
* Add AsyncSeq.withCancellation for design parity with TaskSeq (#277)
Adds AsyncSeq.withCancellation, which returns a new AsyncSeq<'T> that
passes the given CancellationToken to GetAsyncEnumerator, overriding
whatever token would otherwise be supplied during iteration.
This mirrors TaskSeq.withCancellation and is useful when consuming
sequences from libraries (e.g. Entity Framework) that accept a
CancellationToken through GetAsyncEnumerator.
Closes#277 (partial - withCancellation addressed; further design parity
investigation tracked in the issue).
Co-authored-by: Copilot <[email protected]>
* ci: trigger checks
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <[email protected]>
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
### 4.10.0
2
+
3
+
* 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).
4
+
1
5
### 4.9.0
2
6
3
7
* Performance: `filterAsync` — replaced `asyncSeq`-builder implementation with a direct optimised enumerator, reducing allocation and generator overhead.
0 commit comments