title: Wait until all threads finished their work in ThreadPool
body: <p>i have this code:</p>
  
  <pre><code>var list = new List&lt;int&gt;();
  for(int i=0;i&lt;10;i++) list.Add(i); 
  for(int i=0;i&lt;10;i++)
  {
       ThreadPool.QueueUserWorkItem(
           new WaitCallback(x =&gt; {
               Console.WriteLine(x);  
           }), list[i]);
  } 
  </code></pre>
  
  <p>And i want to know when all threadpools threads finished their work. How i can to do that?</p>