title: Thread, abort and wait
body: <p>I am aborting a thread (will be threads soon enough) and the problem is i need to stall until all threads have been aborted.</p>
  
  <p>After doing the <code>Thread.Abort();</code> I thought of using the <code>Thread.Join()</code> to wait until its been fully aborted. However that doesnt work. It just waits forever. How can i abort each thread and wait until its done before continuing?</p>
  
  <p><strong>Additional information:</strong> If your curious why - in this case I am closing a window, I pass a delegate func into the thread which it calls when its done (or aborted). If I dont stall then the window will close and the function will call invalid handles/objs. I can easily use the same method, stick a flag in and loop &amp; sleep until all flags are set but that doesnt feel right.</p>