agtable">
        <tr>
          <th>timeout</td>
          <td>how long to wait before giving up, in units of
        <code>unit</code></td>
        </tr>
        <tr>
          <th>unit</td>
          <td>a <code>TimeUnit</code> determining how to interpret the
        <code>timeout</code> parameter</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the Future representing the next completed task or
         <code>n