So in C#8 we got the addition of the IAsyncEnumerable
interface.
If we have a normal IEnumerable
we can make a List
or pretty much any other collection we want out of it. Thanks to Linq there.
var range = Enumerable.Range(0, 100);
var list = range.ToList();
Well now I want to convert my IAsyncEnumerable
to a List
and this of course asynchronously. Are there already Linq implementations for that case? If there isn't, how could I convert it myself then?