title: PHP S3 deleteBucketAsync wierd working
body: <p>I have a little problem with AWS S3 service. I'm trying to delete whole bucket and i would like to use <code>deleteBucketAsync()</code>.</p>
  
  <p>My code:</p>
  
  <pre><code>    $result = $this-&gt;s3-&gt;listObjects(array(
          'Bucket' =&gt; $bucket_name,
          'Prefix' =&gt; ''
      ));
      foreach($result['Contents'] as $file){
        $this-&gt;s3-&gt;deleteObjectAsync(array(
          'Bucket' =&gt;  $bucket_name,
          'Key'    =&gt; $file['Key']
        ));
      }
  
          $result = $this-&gt;s3-&gt;deleteBucketAsync(
              [
                  'Bucket' =&gt; $bucket_name,
              ]
          );
  </code></pre>
  
  <p>Sometimes this code works and delete whole bucket in seconds. But sometimes it doesn't.
  Can someone please explain me how exacly S3 async functions work?</p>