Stores the method so that it can later be called when a new thread starts.
public Work(System.Func<T1,T2,TResult> work, bool allowSimultaneousActive, int maximumThreadsActive);
work
System.Func<T1,T2,TResult>
The method to call when thread starts.
allowSimultaneousActive
System.Boolean
Whether it should allow multiple of itself to be running at once.
maximumThreadsActive
System.Int32
The amount of threads this class, and all of its overloads can run at once.