Skip to content

Commit 1f1164e

Browse files
authored
Add example to System.Linq.AsyncEnumerable breaking change notice (#45861)
1 parent 3edb035 commit 1f1164e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core/compatibility/core-libraries/10.0/asyncenumerable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ If `System.Linq.Async` is consumed indirectly via another package, avoid ambigui
4242
</PackageReference>
4343
```
4444

45-
Most consuming code should be compatible without changes, but some call sites might need updates to refer to newer names and signatures.
45+
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)`.
4646

4747
Refer to the [System.Linq.AsyncEnumerable API documentation](xref:System.Linq.AsyncEnumerable) for the full set of LINQ extension methods available for <xref:System.Collections.Generic.IAsyncEnumerable`1>.
4848

0 commit comments

Comments
 (0)