Parallelize tasks across multiple threads asynchronously.
Be aware: this library takes advantage of systems with multiple threads/cores, if your system only have one core the performance could be detrimental.
Packages and versions available at the Nuget Galery.
Package | Version | Downloads |
---|---|---|
Proxfield.Parallel |
PM> Install-Package Proxfield.Parallel
Visit out project at the Nuget Repository Page to know more.
await Parallelize.ParallelForEachAsync(myList, async (_) =>
{
// DO STUFF HERE
},
DegreeOfParallelization.High);
Degree of parallelization:
public const int Low = 1;
public const int Medium = 10;
public const int High = 100;
- DegreeOfParallelization.Low: utilizes a single thread;
- Medium: utilizes up to 10 concurrent threads;
- High: utilizes up to 100 concurrent threads.
Parallel is compiled for the following versions of frameworks:
- DotNet 6
- DotNet 5
- DotNet Core 3.1
The MIT License (MIT) - Copyright (c) 2022-2023 Proxfield Consulting Group and its affiliates