title: How can i know if a web worker has closed?
body: <p>HTML5 Workers can close themselves by calling the <strong>close()</strong> method.</p>
  
  <p>Is there a way to tell if the worker process is alive/running or if it has been closed?</p>
  
  <pre><code>var myWorker = new Worker("worker.js");
  
  ...
  
  if( myWorker.isAlive() ) {
      // do stuff
  }
  </code></pre>