he subscription will automatically cancel (even
when it was listening with <code>cancelOnError</code> set to <code>false</code>).</p>
<p>In case of a <code>done</code> event the future completes with the given
<code>futureValue</code>.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">Future&lt;E&gt; asFuture&lt;E&gt;([E futureValue]);</code></pre>
    </section>

  </div> <!--