title: Accessing value returned by scala futures
body: <p>I am a newbie to scala futures and I have a doubt regarding the return value of scala futures.</p>
  
  <p>So, generally syntax for a scala future is </p>
  
  <pre><code> def downloadPage(url: URL) = Future[List[Int]] {
  
   }
  </code></pre>
  
  <p>I want to know how to access the <code>List[Int]</code> from some other method which calls this method.</p>
  
  <p>In other words,</p>
  
  <pre><code>val result = downloadPage("localhost") 
  </code></pre>
  
  <p>then what should be the approach to get <code>List[Int]</code> out of the future ?</p>
  
  <p>I have tried using map method but not able to do this successfully.`</p>