I have a piece of code which is using Parallel.ForEach
, probably based on a old version of Rx extensions or the Tasks Parallel Library. I installed a current version of Rx extensions but cannot find Parallel.ForEach
. I'm not using any other fancy stuff of the library and just want to process some data in parallel like this:
Parallel.ForEach(records, ProcessRecord);
I found this question, but I would not like to depend on an old versions of Rx. But I was not able to find something similar for Rx, so what's the current and most straight forward way to do that using a current Rx version? The project is using .NET 3.5.
Parallel.ForEach
method yourself (no idea how feasible this is - I'd personally crack it open in ILSpy and find out before writing it off). Considering the author of that other question didn't post an answer themselves, you could post a bounty on it asking for an answer that doesn't involve using an old version of Rx. – Uraeus