Add support for `IAsyncEnumerable<T>`
See original GitHub issueDescription
The IAsyncEnumerable<T>
type was introduced in C#8 to allow for async streams of data (basically, iterator blocks that can await
for inner tasks to produce values and can be iterated over using the new await foreach
construct).
Currently, FA doesn’t provide any support for this general-purpose iterator type, forcing people to create their own, or materialize the async stream into a standard collection (using System.Linq.Async
’s ToListAsync
for example).
Right after starting to use C#8 more, we’ve already identified several real-world use-cases for IAsyncEnumerable
and have been struggling to do assertions on them using FA.
It would be great if most (if not all) collection-based assertions were also available for IAsyncEnumerable
.
Versions
Missing on the most recent version, 5.9.0
Issue Analytics
- State:
- Created 4 years ago
- Reactions:14
- Comments:23 (15 by maintainers)
Top GitHub Comments
That’s a good suggestion and a nice incentive to move people to 6.0.
@jnyrup Just a small note: the System.Linq.Async package provides
ToListAsync()
and more.