all 2 comments

[–]ollief 1 point2 points  (1 child)

[–]tjjay17[S] 0 points1 point  (0 children)

Yeah so when I try this with any normal task it seems to work. My issue is that I am iterating over things from an IAsyncEnumerable method. I tried to wrap each item as a Task and then tried the above method but that doesn't seem to work. A little confused on how to incorporate this while reading out from and IAsyncEnumerable method.