python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
What is the meaning of the MaxDegreeOfParallelism = -1 in Parallel operations in .NET 6?
The documentation of the ParallelOptions.MaxDegreeOfParallelism property states that:
The MaxDegreeOfParallelism property affects the number of concurrent operations run by Parallel method calls that...
Theodor Zoulias
Votes: 0
Answers: 1
Can .NET 6's Parallel.ForEachAsync be nested?
I want to do calculations with an outer and an inner loop which I can do in parallel.
Furthermore, I want to use the async/await-based programming model. In the outer loop there is a place where a res...
MarkusParker
Votes: 0
Answers: 1
How to break the Parallel.ForEachAsync loop, not cancel it?
In .NET 5 we had Parallel.ForEach which you were able to use ParallelLoopState.Break() method to stop additional iterations from processing. Allowing current ones to complete processing.
But the new ....
stymie2
Votes: 0
Answers: 1
Stop Parallel.ForEachAsync
In C#, I am interested in stopping a Parallel.ForEachAsync loop (considering the differences between Stop and Break); for Parallel.ForEach I can do the following:
Parallel.ForEach(items, (item, state)...
Dr. Strangelove
Votes: 0
Answers: 2