Note that there are some explanatory texts on larger screens.

plurals
  1. POIdeas for good class name
    primarykey
    data
    text
    <p>How would you name a class with the following public interface:</p> <pre><code>/// &lt;summary&gt; /// Enqeues and exectutes actions synchronously on seperated threads using the &lt;see cref="ThreadPool"/&gt;. /// &lt;/summary&gt; /// &lt;remarks&gt; /// Syncronism is guaranteed on a per-instance base in that each enqued action will be executed /// after the previous action has completed execution for each instance of &lt;see cref="ThreadPoolExectutor" /&gt; /// &lt;/remarks&gt; internal class ThreadPoolExectutor { /// &lt;summary&gt; /// Initializes a new instance of the &lt;see cref="ThreadPoolExectutor"/&gt; class. /// &lt;/summary&gt; /// &lt;param name="capacity"&gt;The absolute (not the initial) number of elements that the &lt;see cref="ThreadPoolExectutor"/&gt; can contain.&lt;/param&gt; public ThreadPoolExectutor(int capacity) /// &lt;summary&gt; /// Occurs when exception occured during execution. /// &lt;/summary&gt; public event EventHandler&lt;ExceptionEventArgs&gt; ExceptionOccurred; /// &lt;summary&gt; /// Enqueues a new action with a single parameter for execution on the thread pool. /// &lt;/summary&gt; /// &lt;param name="action"&gt; /// The action to enqueue for execution. /// &lt;/param&gt; /// &lt;param name="param"&gt; /// The parameter for the action. /// &lt;/param&gt; /// &lt;typeparam name="TArg"&gt; /// The type of the &lt;paramref name="param"/&gt;. /// &lt;/typeparam&gt; public void Execute&lt;TArg&gt;(Action&lt;TArg&gt; action, TArg param) /// &lt;summary&gt; /// Enqueues a new action with no parameters for execution on the thread pool. /// &lt;/summary&gt; /// &lt;param name="action"&gt; /// The action to enqueue for execution. /// &lt;/param&gt; public void Execute(Action action) } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload