title: What is the difference of Future/Await and Async/Await
body: <p>In Scala and other programming languages one can use Futures and Await.</p>
  
  <p>(In real code one would use e.g. zip+map instead of Await)</p>
  
  <pre><code>def b1() = Future { 1 }
  def b2() = Future { 2 }
  
  def a() = Future {
    Await.result(b1(),Duration.inf) + Await.result(b2(),Duration.inf)
  }
  </code></pre>
  
  <blockquote>
    <p>What is the difference to <strong><em>Async/Await</em></strong> in Javascript/Scala?</p>
  </blockquote>
  
  <pre><code>async function b1() { return 1 }
  async function b2() { return 3 }
  
  async function a() { 
    return await b1() + await b2()
  }
  </code></pre>