s.html">Future</a>s,
are discarded.</p>
<p>Any error from <code>action</code>, synchronous or asynchronous,
will stop the iteration and be reported in the returned <a href="dart-async/Future-class.html">Future</a>.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">static Future forEach&lt;T&gt;(Iterable&lt;T&gt; elements, FutureOr action(T element)) {
  var iterator = elements.