title: Wait with Read() for Parallel.ForEach
body: <p>I wrote a simple console application that should process some tasks in parallel. For this I used Parallel.ForEachlike this:</p>
  <pre><code>        Parallel.ForEach(_jobs, async job =&gt;
          {
              await job.DoItAsync();
          });
          Console.Read();
  </code></pre>
  <p>My application should stop when all tasks in the list _jobs have finished.
  However, this works only if I have a &quot;Console.Read()&quot; after the Parallel.
  Now the user has to enter a key after the processing has ended. But this is not what I want. I want the app to close automatically after my execution has finished.<br />
  But if I remove the Read() statement, my app just exists directly without doing anything.</p>
  <p>Any ideas what I need to change here?</p>