title: Groovy each method/closure
body: <p>What is the difference between using </p>
  
  <pre><code>teams.each(){ team-&gt;
  //iterate through each team
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>teams.each { team-&gt;
  //iterate through each team
  }
  </code></pre>
  
  <p>Please note in the first one there is a bracket after each and before the closure. We were doing some load testing on our application and noticed that when we use the first one, there are some threads waiting on at this call. But in the second case all works smoothly.</p>
  
  <p>I am curious to know what is the difference here.</p>