❔ IAsyncEnumerable vs List<T> as parameter in method
I have a method that is overloaded and will take in a List<T> or IAsyncEnumerable. The method will batch requests up to 10 then send them. I am confident the List<T> version is doing what I expect. But I am unsure exactly what to expect with the IAsyncEnumerable
The list T method is the same code but with foreach instead of await foreach.
3 Replies
I don't quite get the question, where are you still confused exactly?
List<T> does the same as AsyncEnumerable version (but asyncEnumerable is async)
so, as Sossenbinder said, what r u questioning?
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.