From cd8c7644685c97010a8ee524560df059a7e06725 Mon Sep 17 00:00:00 2001 From: Richard Werkman Date: Wed, 3 Apr 2024 20:18:12 +0200 Subject: [PATCH] Use concurrentbag instead of list --- .../Stryker.Core/Initialisation/ProjectOrchestrator.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Stryker.Core/Stryker.Core/Initialisation/ProjectOrchestrator.cs b/src/Stryker.Core/Stryker.Core/Initialisation/ProjectOrchestrator.cs index 06c1ccc809..e01fd60e65 100644 --- a/src/Stryker.Core/Stryker.Core/Initialisation/ProjectOrchestrator.cs +++ b/src/Stryker.Core/Stryker.Core/Initialisation/ProjectOrchestrator.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Linq; @@ -64,7 +65,7 @@ public IEnumerable MutateProjects(StrykerOptions options, InitializeDashboardProjectInformation(options, projectInfos.First()); var inputs = _initializationProcess.GetMutationTestInputs(options, projectInfos, _runner); - var mutationTestProcesses = new List(); + var mutationTestProcesses = new ConcurrentBag(); Parallel.ForEach(inputs, mutationTestInput => { mutationTestProcesses.Add(_projectMutator.MutateProject(options, mutationTestInput, reporters));