title: Scala extract result from future
body: <p>I am new to Scala, Play and using Futures.
  I have the following Play class which makes an API call and encapsulates the result in a Future.</p>
  
  <p>How can I extract the result from the Future?</p>
  
  <pre><code>class WikiArticle(url : String) {
  
    var future : Future[WSResponse] = null
  
    def queryApi(): Unit = {
      val holder : WSRequest = WS.url(url)
      future = {
        holder.get()
      }
      future.onSuccess({
        //How do I extract the result here?
      });
    }
  </code></pre>