title: Convert a Java Future to a Scala Future
body: <p>I have a <code>Java Future</code> object which I would like to convert into a <code>Scala Future</code>.</p>
  
  <p>Looking at the <code>j.u.c.Future</code> API, there is nothing much that I could use other than the <code>isDone</code> method. Is this <code>isDone</code> method blocking?</p>
  
  <p>Currently this is what I have in my mind:</p>
  
  <pre><code>val p = Promise()
  if (javaFuture.isDone())
    p.success(javaFuture.get)
  </code></pre>
  
  <p>Is there a better way to do this?</p>