From 1f1164e95d5edbafacedfc5a2f6768135f94c61e Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Sun, 20 Apr 2025 16:13:22 -0400 Subject: [PATCH] Add example to System.Linq.AsyncEnumerable breaking change notice (#45861) --- docs/core/compatibility/core-libraries/10.0/asyncenumerable.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/compatibility/core-libraries/10.0/asyncenumerable.md b/docs/core/compatibility/core-libraries/10.0/asyncenumerable.md index 635c39470324c..bd3b8c9522b64 100644 --- a/docs/core/compatibility/core-libraries/10.0/asyncenumerable.md +++ b/docs/core/compatibility/core-libraries/10.0/asyncenumerable.md @@ -42,7 +42,7 @@ If `System.Linq.Async` is consumed indirectly via another package, avoid ambigui ``` -Most consuming code should be compatible without changes, but some call sites might need updates to refer to newer names and signatures. +Most consuming code should be compatible without changes, but some call sites might need updates to refer to newer names and signatures. For example, a `Select` call like `e.Select(i => i * 2)` will work the same before and after. However, the call `e.SelectAwait(async (int i, CancellationToken ct) => i * 2)` will need to be changed to use `Select` instead of `SelectAwait`, as in `e.Select(async (int i, CancellationToken ct) => i * 2)`. Refer to the [System.Linq.AsyncEnumerable API documentation](xref:System.Linq.AsyncEnumerable) for the full set of LINQ extension methods available for .