title: Dart: How to return Future<void>
body: <p>How can I return <code>Future&lt;void&gt;</code> ?</p>
  
  <pre><code>   Future&lt;void&gt; deleteAll(List stuff){
         stuff.forEach( s =&gt; delete(s));   //How do I return Future&lt;void&gt; when loop and all delete Operation are finished?
     }
  
     Future&lt;void&gt; delete(Stuff s) async {
        ....
        file.writeAsString(jsonEncode(...));
     }
  </code></pre>
  
  <p>How do I return <code>Future&lt;void&gt;</code> when the <code>forEach</code> loop and all delete Operations are finished?</p>