-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use asynchronous lock in Parallel.ForEachAsync with synchronous enume…
…rable (#82501) * Use asynchronous lock in Parallel.ForEachAsync with synchronous enumerable Avoid blocking threads while waiting for access to the enumerator in the case of a slower MoveNext. * Update src/libraries/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/Parallel.ForEachAsync.cs Co-authored-by: Tanner Gooding <tagoo@outlook.com> --------- Co-authored-by: Tanner Gooding <tagoo@outlook.com>
- Loading branch information
1 parent
72c9c36
commit 220437e
Showing
1 changed file
with
31 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters