Answers for "how to break out of parallel.foreach"

0

how to break out of parallel.foreach

Parallel.ForEach(list,
    (i, state) =>
    {
       state.Break();
    });
Posted by: Guest on July-21-2020

Code answers related to "how to break out of parallel.foreach"

Browse Popular Code Answers by Language