title: Stop evenmachine after all data loaded with many fibers
body: <p>I tried get data from rest api using http requests and evenmachine. For this use <a href="https://github.com/jfairbairn/em-net-http" rel="nofollow">em-net-http</a>, fibers(ruby1.9.2p290). My pseudocode look like this:</p>
  
  <pre><code>  EM.run do
      Fiber.new do
        api_client.get_data_1
      end.resume
  
      Fiber.new do
        api_client.get_data_2
      end.resume
  
      ...
  
      Fiber.new do
        api_client.get_data_n
      end.resume
  
      EventMachine.stop
    end
  </code></pre>
  
  <p>Question: How stop EM after all data loaded? I counted requests but this bad practice. Is there any pattern to do this? I also used <a href="https://github.com/igrigorik/em-synchrony/" rel="nofollow">em-synchrony</a> but this slower for me.</p>
  
  <p>Thanks</p>