PowerThreadPool 4.20.2
dotnet add package PowerThreadPool --version 4.20.2
NuGet\Install-Package PowerThreadPool -Version 4.20.2
<PackageReference Include="PowerThreadPool" Version="4.20.2" />
<PackageVersion Include="PowerThreadPool" Version="4.20.2" />
<PackageReference Include="PowerThreadPool" />
paket add PowerThreadPool --version 4.20.2
#r "nuget: PowerThreadPool, 4.20.2"
#:package PowerThreadPool@4.20.2
#addin nuget:?package=PowerThreadPool&version=4.20.2
#tool nuget:?package=PowerThreadPool&version=4.20.2
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
Access the Wiki in English | 中文 | 日本語.
Visit the DeepWiki for more information.
Installation
If you want to include PowerThreadPool in your project, you can install it directly from NuGet.
Support: Net40+ | Net5.0+ | netstandard2.0+
Features
- Sync | Async
- Pool Control | Work Control
- Thread Pool Sizing
- Work Callback | Default Callback
- Rejection Policy
- 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
Testing And Performance Analysis | Feature Comparison
Contributors ✨
Thanks goes to these wonderful people (emoji key):
<table> <tbody> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/dlnn"><img src="https://avatars.githubusercontent.com/u/22004270?v=4?s=100" width="100px;" alt="一条咸鱼"/><br /><sub><b>一条咸鱼</b></sub></a><br /><a href="https://github.com/ZjzMisaka/PowerThreadPool/commits?author=dlnn" title="Code">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/ZjzMisaka"><img src="https://avatars.githubusercontent.com/u/16731853?v=4?s=100" width="100px;" alt="ZjzMisaka"/><br /><sub><b>ZjzMisaka</b></sub></a><br /><a href="https://github.com/ZjzMisaka/PowerThreadPool/commits?author=ZjzMisaka" title="Code">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/r00tee"><img src="https://avatars.githubusercontent.com/u/32619657?v=4?s=100" width="100px;" alt="r00tee"/><br /><sub><b>r00tee</b></sub></a><br /><a href="#ideas-r00tee" title="Ideas, Planning, & Feedback">🤔</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/aadog"><img src="https://avatars.githubusercontent.com/u/18098725?v=4?s=100" width="100px;" alt="aadog"/><br /><sub><b>aadog</b></sub></a><br /><a href="https://github.com/ZjzMisaka/PowerThreadPool/issues?q=author%3Aaadog" title="Bug reports">🐛</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/RookieZWH"><img src="https://avatars.githubusercontent.com/u/17580767?v=4?s=100" width="100px;" alt="RookieZWH"/><br /><sub><b>RookieZWH</b></sub></a><br /><a href="#question-RookieZWH" title="Answering Questions">💬</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/hebinary"><img src="https://avatars.githubusercontent.com/u/86285187?v=4?s=100" width="100px;" alt="hebinary"/><br /><sub><b>hebinary</b></sub></a><br /><a href="#question-hebinary" title="Answering Questions">💬</a></td> </tr> </tbody> </table>
This project follows the all-contributors specification. Contributions of any kind welcome!
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. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.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. |
-
.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.20.2 | 27 | 7/15/2025 | |
4.20.1 | 45 | 7/13/2025 | |
4.20.0 | 156 | 6/18/2025 | |
4.19.0 | 131 | 6/17/2025 | |
4.18.3 | 310 | 6/10/2025 | |
4.18.2 | 157 | 5/29/2025 | |
4.18.1 | 225 | 5/16/2025 | |
4.18.0 | 158 | 5/8/2025 | |
4.17.0 | 153 | 4/27/2025 | |
4.16.4 | 196 | 3/20/2025 | |
4.16.3 | 185 | 3/3/2025 | |
4.16.2 | 144 | 2/21/2025 | |
4.16.1 | 161 | 2/4/2025 | |
4.16.0 | 140 | 1/19/2025 | |
4.15.0 | 147 | 1/3/2025 | |
4.14.2 | 151 | 12/18/2024 | |
4.14.1.1 | 143 | 12/13/2024 | |
4.14.1 | 134 | 12/13/2024 | |
4.14.0 | 144 | 12/4/2024 | |
4.13.0 | 156 | 11/14/2024 | |
4.12.1 | 148 | 11/9/2024 | |
4.12.0 | 170 | 10/16/2024 | |
4.11.1 | 151 | 9/29/2024 | |
4.11.0 | 135 | 9/24/2024 | |
4.10.0 | 206 | 9/18/2024 | |
4.9.1 | 185 | 9/1/2024 | |
4.9.0 | 169 | 8/24/2024 | |
4.8.2 | 164 | 8/18/2024 | |
4.8.1 | 129 | 7/27/2024 | |
4.8.0 | 176 | 7/21/2024 | |
4.7.0 | 164 | 7/18/2024 | |
4.6.0 | 145 | 6/30/2024 | |
4.5.1 | 177 | 5/29/2024 | |
4.5.0 | 151 | 5/24/2024 | |
4.4.0 | 125 | 5/20/2024 | |
4.3.0 | 140 | 5/16/2024 | |
4.2.0 | 142 | 5/13/2024 | |
4.1.0 | 149 | 5/11/2024 | |
4.0.4 | 160 | 5/9/2024 | |
4.0.3 | 219 | 5/5/2024 | |
4.0.2 | 171 | 5/4/2024 | |
4.0.1 | 140 | 4/27/2024 | |
4.0.0 | 149 | 4/24/2024 | |
3.2.0 | 145 | 4/22/2024 | |
3.1.0 | 150 | 4/20/2024 | |
3.0.0 | 138 | 4/18/2024 | |
2.5.11 | 159 | 4/15/2024 | |
2.5.10 | 144 | 4/12/2024 | |
2.5.9 | 144 | 4/8/2024 | |
2.5.8 | 177 | 3/26/2024 | |
2.5.7 | 163 | 3/22/2024 | |
2.5.6 | 158 | 3/12/2024 | |
2.5.5 | 190 | 3/2/2024 | |
2.5.4 | 141 | 2/29/2024 | |
2.5.3 | 159 | 2/29/2024 | |
2.5.2 | 171 | 2/26/2024 | |
2.5.1 | 160 | 2/25/2024 | |
2.5.0 | 190 | 2/8/2024 | |
2.4.0 | 234 | 12/5/2023 | |
2.3.0 | 135 | 12/5/2023 | |
2.2.3 | 149 | 12/4/2023 | |
2.2.2 | 133 | 12/3/2023 | |
2.2.1 | 172 | 11/21/2023 | |
2.2.0 | 138 | 11/12/2023 | |
2.1.4 | 126 | 11/11/2023 | |
2.1.3 | 129 | 11/11/2023 | |
2.1.2 | 127 | 11/11/2023 | |
2.1.1 | 134 | 11/6/2023 | |
2.1.0 | 125 | 11/5/2023 | |
2.0.1 | 168 | 10/23/2023 | |
2.0.0 | 158 | 10/22/2023 | |
1.5.10 | 165 | 9/24/2023 | |
1.5.9 | 159 | 9/24/2023 | |
1.5.8 | 146 | 9/18/2023 | |
1.5.7 | 136 | 9/17/2023 | |
1.5.6 | 164 | 9/8/2023 | |
1.5.5 | 165 | 9/7/2023 | |
1.5.4 | 179 | 9/6/2023 | |
1.5.3 | 181 | 9/5/2023 | |
1.5.2 | 153 | 9/4/2023 | |
1.5.1 | 178 | 9/3/2023 | |
1.5.0 | 171 | 9/2/2023 | |
1.4.5 | 173 | 9/1/2023 | |
1.4.4 | 164 | 9/1/2023 | |
1.4.3 | 155 | 8/31/2023 | |
1.4.2 | 161 | 8/30/2023 | |
1.4.1 | 253 | 8/30/2023 | |
1.4.0 | 205 | 8/30/2023 | |
1.3.2 | 188 | 8/29/2023 | |
1.3.1 | 175 | 8/28/2023 | |
1.3.0 | 181 | 8/28/2023 | |
1.2.1 | 180 | 8/28/2023 | |
1.2.0 | 180 | 8/27/2023 | |
1.1.0 | 194 | 8/27/2023 | |
1.0.2 | 177 | 8/26/2023 | |
1.0.1 | 175 | 8/26/2023 | |
1.0.0 | 180 | 8/26/2023 |