title: How to await for a Promise with a timeout?
body: <p>The following awaits forever, I think. How do I specify a timeout?</p>
  
  <pre><code>await(new Job&lt;Long&gt;() {
      @Override
      public Long doJobWithResult() throws Exception {
          ...
      }
  }.now());
  </code></pre>