Skip to content

Thread safety in await IAsyncEnumerable<T> #118056

Answered by stephentoub
LeaFrock asked this question in Q&A
Discussion options

You must be logged in to vote

await foreach processes the loop body sequentially. It does not introduce any parallelism.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@LeaFrock
Comment options

@huoyaoyuan
Comment options

@LeaFrock
Comment options

@huoyaoyuan
Comment options

Answer selected by LeaFrock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants