csharpstandard
csharpstandard copied to clipboard
Add support for Async Streams
There is some overlap between this PR and PR #672 in 13.14, "The using statement" that will require reconciliation when the second of these two PRs is merged. (PR 606 was spec'd first.)
A comparison that doesn't include so many unrelated changes: https://github.com/dotnet/csharpstandard/compare/draft-v7...RexJaeschke:csharpstandard:async-streams
rebased on the latest draft v8 branch on 09/23/2023
Summary of discussions:
- Try to reword to avoid the brackets
- Avoid using "stream" in normative text, but have a note
- Merge the "Asynchronous stream creation and usage" into the iterator section
- Reorder async and iterators so that async comes first
- Defer the CancellationToken support until after we've got the structure right (but as a fast-follow - definitely in C# 8)