title: How to send multiple requests at once ReactPHP?
body: <p>I am using guzzle to send some requests:</p>
  
  <pre><code>$response = $this-&gt;client-&gt;request(new SomeObject());
  </code></pre>
  
  <p>using the class below</p>
  
  <pre><code>...
  public function request(Request $request)
  {
      return $this-&gt;requestAsync($request)-&gt;wait();
  }
  
  // Here I'm using Guzzle Async, but I can remove that is needed
  public function requestAsync(Request $request)
  {
      $promise = $this-&gt;http-&gt;requestAsync($request-&gt;getMethod(), $request-&gt;getUri());
  
      $promise = $promise-&gt;then(
          function (ResponseInterface $response) use ($request) {
              return $response;
          }
      );
  
      return $promise;
  }
  ...
  </code></pre>
  
  <p>I would like to use ReactPHP to send multiple requests at once in a foreach loop:</p>
  
  <pre><code>$requests = [];
  foreach ($data as $value) {
      $requests[] = $this-&gt;client-&gt;request(new SomeObject());
  }
  
  // pass $requests to ReactPHP here and wait on the response
  </code></pre>
  
  <p>Any ideas?</p>