title: In Scala, does Futures.awaitAll terminate the thread on timeout?
body: <p>So I'm writing a mini timeout library in scala, it looks very similar to the code here: <a href="https://stackoverflow.com/questions/6229778/how-do-i-get-hold-of-exceptions-thrown-in-a-scala-future">How do I get hold of exceptions thrown in a Scala Future?</a></p>
  
  <p>The function I execute is either going to complete successfully, or block forever, so I need to make sure that on a timeout the executing thread is cancelled.</p>
  
  <p>Thus my question is: <strong>On a timeout, does awaitAll terminate the underlying actor, or just let it keep running forever?</strong></p>
  
  <p>One alternative that I'm considering is to use the java Future library to do this as there is an explicit cancel() method one can call.</p>