PowerThreadPool 4.14.0
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
.NET Framework 4.0
This package targets .NET Framework 4.0. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package PowerThreadPool --version 4.14.0
NuGet\Install-Package PowerThreadPool -Version 4.14.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PowerThreadPool" Version="4.14.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PowerThreadPool --version 4.14.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PowerThreadPool, 4.14.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PowerThreadPool as a Cake Addin #addin nuget:?package=PowerThreadPool&version=4.14.0 // Install PowerThreadPool as a Cake Tool #tool nuget:?package=PowerThreadPool&version=4.14.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
PowerThreadPool
A comprehensive and efficient lock-free thread pool with granular work control, flexible concurrency, and robust error handling, alongside an easy-to-use API for diverse work submissions.
Documentation
Read the Wiki here.
Installation
If you want to include PowerThreadPool in your project, you can install it directly from NuGet.
Support: Net40+ | Net5.0+ | netstandard2.0+
Features
- Pool Control | Work Control
- Thread Pool Sizing
- Work Callback | Default Callback
- Parallel Execution
- Work Priority | Thread Priority
- Error Handling
- Work Timeout | Cumulative Work Timeout
- Work Dependency
- Work Group
- Events
- Runtime Status
- Running Timer
- Queue Type (FIFO | LIFO | Custom)
- Load Balancing
- Lock-Free
Getting started
Simple example: run a work
PowerPool powerPool = new PowerPool();
powerPool.QueueWorkItem(() =>
{
// Do something
});
With callback
PowerPool powerPool = new PowerPool(new PowerPoolOption() { /* Some options */ });
powerPool.QueueWorkItem(() =>
{
// Do something
return result;
}, (res) =>
{
// Callback of the work
});
With option
PowerPool powerPool = new PowerPool(new PowerPoolOption() { /* Some options */ });
powerPool.QueueWorkItem(() =>
{
// Do something
return result;
}, new WorkOption()
{
// Some options
});
Reference
string QueueWorkItem<T1, ...>(Action<T1, ...> action, T1 param1, ..., *);
string QueueWorkItem(Action action, *);
string QueueWorkItem(Action<object[]> action, object[] param, *);
string QueueWorkItem<T1, ..., TResult>(Func<T1, ..., TResult> function, T1 param1, ..., *);
string QueueWorkItem<TResult>(Func<TResult> function, *);
string QueueWorkItem<TResult>(Func<object[], TResult> function, object[] param, *);
- Asterisk (*) denotes an optional parameter, either a WorkOption or a delegate (
Action<ExecuteResult<object>>
orAction<ExecuteResult<TResult>>
), depending on whether the first parameter is an Action or a Func. - In places where you see ellipses (...), you can provide up to five generic type parameters.
More
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net40 is compatible. net403 was computed. net45 is compatible. net451 is compatible. net452 is compatible. net46 is compatible. net461 is compatible. net462 is compatible. net463 was computed. net47 is compatible. net471 is compatible. net472 is compatible. net48 is compatible. net481 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.5
- No dependencies.
-
.NETFramework 4.5.1
- No dependencies.
-
.NETFramework 4.5.2
- No dependencies.
-
.NETFramework 4.6
- No dependencies.
-
.NETFramework 4.6.1
- No dependencies.
-
.NETFramework 4.6.2
- No dependencies.
-
.NETFramework 4.7
- No dependencies.
-
.NETFramework 4.7.1
- No dependencies.
-
.NETFramework 4.7.2
- No dependencies.
-
.NETFramework 4.8
- No dependencies.
-
.NETFramework 4.8.1
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
-
.NETStandard 2.1
- No dependencies.
-
net5.0
- No dependencies.
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
4.14.2 | 84 | 12/18/2024 | |
4.14.1.1 | 94 | 12/13/2024 | |
4.14.1 | 80 | 12/13/2024 | |
4.14.0 | 101 | 12/4/2024 | |
4.13.0 | 102 | 11/14/2024 | |
4.12.1 | 102 | 11/9/2024 | |
4.12.0 | 135 | 10/16/2024 | |
4.11.1 | 112 | 9/29/2024 | |
4.11.0 | 100 | 9/24/2024 | |
4.10.0 | 128 | 9/18/2024 | |
4.9.1 | 143 | 9/1/2024 | |
4.9.0 | 136 | 8/24/2024 | |
4.8.2 | 119 | 8/18/2024 | |
4.8.1 | 100 | 7/27/2024 | |
4.8.0 | 143 | 7/21/2024 | |
4.7.0 | 124 | 7/18/2024 | |
4.6.0 | 111 | 6/30/2024 | |
4.5.1 | 140 | 5/29/2024 | |
4.5.0 | 126 | 5/24/2024 | |
4.4.0 | 96 | 5/20/2024 | |
4.3.0 | 112 | 5/16/2024 | |
4.2.0 | 109 | 5/13/2024 | |
4.1.0 | 113 | 5/11/2024 | |
4.0.4 | 125 | 5/9/2024 | |
4.0.3 | 146 | 5/5/2024 | |
4.0.2 | 127 | 5/4/2024 | |
4.0.1 | 108 | 4/27/2024 | |
4.0.0 | 117 | 4/24/2024 | |
3.2.0 | 120 | 4/22/2024 | |
3.1.0 | 121 | 4/20/2024 | |
3.0.0 | 103 | 4/18/2024 | |
2.5.11 | 121 | 4/15/2024 | |
2.5.10 | 112 | 4/12/2024 | |
2.5.9 | 114 | 4/8/2024 | |
2.5.8 | 143 | 3/26/2024 | |
2.5.7 | 132 | 3/22/2024 | |
2.5.6 | 130 | 3/12/2024 | |
2.5.5 | 161 | 3/2/2024 | |
2.5.4 | 117 | 2/29/2024 | |
2.5.3 | 129 | 2/29/2024 | |
2.5.2 | 140 | 2/26/2024 | |
2.5.1 | 125 | 2/25/2024 | |
2.5.0 | 163 | 2/8/2024 | |
2.4.0 | 220 | 12/5/2023 | |
2.3.0 | 118 | 12/5/2023 | |
2.2.3 | 131 | 12/4/2023 | |
2.2.2 | 120 | 12/3/2023 | |
2.2.1 | 157 | 11/21/2023 | |
2.2.0 | 124 | 11/12/2023 | |
2.1.4 | 103 | 11/11/2023 | |
2.1.3 | 106 | 11/11/2023 | |
2.1.2 | 114 | 11/11/2023 | |
2.1.1 | 115 | 11/6/2023 | |
2.1.0 | 110 | 11/5/2023 | |
2.0.1 | 144 | 10/23/2023 | |
2.0.0 | 137 | 10/22/2023 | |
1.5.10 | 145 | 9/24/2023 | |
1.5.9 | 138 | 9/24/2023 | |
1.5.8 | 125 | 9/18/2023 | |
1.5.7 | 112 | 9/17/2023 | |
1.5.6 | 137 | 9/8/2023 | |
1.5.5 | 134 | 9/7/2023 | |
1.5.4 | 144 | 9/6/2023 | |
1.5.3 | 147 | 9/5/2023 | |
1.5.2 | 127 | 9/4/2023 | |
1.5.1 | 146 | 9/3/2023 | |
1.5.0 | 146 | 9/2/2023 | |
1.4.5 | 151 | 9/1/2023 | |
1.4.4 | 134 | 9/1/2023 | |
1.4.3 | 131 | 8/31/2023 | |
1.4.2 | 135 | 8/30/2023 | |
1.4.1 | 214 | 8/30/2023 | |
1.4.0 | 168 | 8/30/2023 | |
1.3.2 | 161 | 8/29/2023 | |
1.3.1 | 150 | 8/28/2023 | |
1.3.0 | 159 | 8/28/2023 | |
1.2.1 | 155 | 8/28/2023 | |
1.2.0 | 152 | 8/27/2023 | |
1.1.0 | 165 | 8/27/2023 | |
1.0.2 | 150 | 8/26/2023 | |
1.0.1 | 150 | 8/26/2023 | |
1.0.0 | 148 | 8/26/2023 |