de> is omitted, a timeout will cause the returned future to
complete with a <a href="dart-async/TimeoutException-class.html">TimeoutException</a>.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">Future&lt;T&gt; timeout(Duration timeLimit, {FutureOr&lt;T&gt; onTimeout()});</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="c