Skip to content

proxfield/Proxfield.Parallel

Repository files navigation

Parallelize tasks across multiple threads asynchronously.

GitHub License Actions Nuget GitHub branch checks state GitHub code size in bytes

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

Packages and versions available at the Nuget Galery.

Package Version Downloads
Proxfield.Parallel Nuget version Nuget downloads

Nuget

PM> Install-Package Proxfield.Parallel

Visit out project at the Nuget Repository Page to know more.

How

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.

Platform Support

Parallel is compiled for the following versions of frameworks:

  • DotNet 6
  • DotNet 5
  • DotNet Core 3.1

License

GitHub License

The MIT License (MIT) - Copyright (c) 2022-2023 Proxfield Consulting Group and its affiliates