-
Inside a typical async foreach loop await foreach(var ele in MyAsyncEnumerable())
{
//do something
} if it's safe to assume that the enumeration of ele doesn't depend on what happens inside the body of the loop, for example reading a file over ftp, we can start doing that (prefetching) for the next enumeration while the current enumeration's body in the for loop is still executing. |
Beta Was this translation helpful? Give feedback.
Answered by
Joe4evr
Feb 13, 2022
Replies: 1 comment
-
Same question not even two weeks old: #64697 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Xyncgas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same question not even two weeks old: #64697