diff --git a/PowerThreadPool/Core/PowerThreadPool.QueueWorkItem.cs b/PowerThreadPool/Core/PowerThreadPool.QueueWorkItem.cs index f6d23d6..8675a8b 100644 --- a/PowerThreadPool/Core/PowerThreadPool.QueueWorkItem.cs +++ b/PowerThreadPool/Core/PowerThreadPool.QueueWorkItem.cs @@ -9,6 +9,16 @@ namespace PowerThreadPool { + /// + /// There are a great many overloads of QueueWorkItem, but this is the conventional .NET approach. + /// I want to keep the API strongly typed without introducing a source generator, + /// so I’m trading space for ease of use. + /// Considering that: + /// https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.CoreLib/src/System/Tuple.cs + /// https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.CoreLib/src/System/Action.cs + /// https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.CoreLib/src/System/Function.cs + /// all use a similar brute-force overloading pattern, I think this is unavoidable. + /// public partial class PowerPool { private long _workIDIncrement = 0;