Skip to content

Conversation

@stephentoub
Copy link
Member

Avoid blocking threads while waiting for access to the enumerator in the case of a slower MoveNext.

Fixes #81877

…rable

Avoid blocking threads while waiting for access to the enumerator in the case of a slower MoveNext.
@stephentoub stephentoub added this to the 8.0.0 milestone Feb 22, 2023
@ghost ghost assigned stephentoub Feb 22, 2023
@ghost
Copy link

ghost commented Feb 22, 2023

Tagging subscribers to this area: @dotnet/area-system-threading-tasks
See info in area-owners.md if you want to be subscribed.

Issue Details

Avoid blocking threads while waiting for access to the enumerator in the case of a slower MoveNext.

Fixes #81877

Author: stephentoub
Assignees: -
Labels:

area-System.Threading.Tasks, tenet-performance

Milestone: 8.0.0

…ding/Tasks/Parallel.ForEachAsync.cs

Co-authored-by: Tanner Gooding <[email protected]>
@stephentoub stephentoub merged commit 220437e into dotnet:main Feb 23, 2023
@stephentoub stephentoub deleted the foreachasynclock branch February 23, 2023 20:54
@ghost ghost locked as resolved and limited conversation to collaborators Mar 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The Parallel.ForEachAsync with synchronous source can block many threads

3 participants